Processes P1, P2, P3 and P4 arrive at times 0, 1, 2 and 3 with CPU bursts of 6, 3, 1 and 4 ms. Under preemptive SJF (SRTF), the average waiting time is
- A4.0 ms
- B3.25 ms
- C3.5 ms
- D2.75 ms
Correct answer: D
Processes P1, P2, P3 and P4 arrive at times 0, 1, 2 and 3 with CPU bursts of 6, 3, 1 and 4 ms. Under preemptive SJF (SRTF), the average waiting time is