four programs must be run on one computer. all programs consist of 2 processor cycles and 2 input / output cycles. The input and output of all programs is done on the same disk drive. the times for each cycle of each program are shown below:
PROGRAM | PROCESSOR | DISK | PROCESSOR | DISK |
P1 | 3 | 10 | 3 | 12 |
P2 | 4 | 12 | 6 | 8 |
P3 | 7 | 8 | 8 | 10 |
P4 | 6 | 14 | 2 | 10 |
a)construct a time diagram showing which program is occupying the processor and the disk at each moment, until the 4 programs are finished. Assuming that the scheduling algorithm used is a time slice, with slices of 4 units of time
b)what is the processor and disk occupation rate?
slice time is slice with 4 units or Q=4units