Consider the following set of processes, the length of the CPU burst time given in milliseconds.
Assuming the above process being scheduled with the SJF scheduling algorithm.
A. The waiting time for process P1 is 3ms
B. The waiting time for process P1 is 0ms
C. The waiting time for process P1 is 16ms
D. The waiting time for process P1 is 9ms
Code:
Process Burst time
P1 6
P2 8
P3 7
P4 3
A. The waiting time for process P1 is 3ms
B. The waiting time for process P1 is 0ms
C. The waiting time for process P1 is 16ms
D. The waiting time for process P1 is 9ms