Four processes arrive in a system with (arrival time, burst time) in ms as P1 (0, 7), P2 (2, 4), P3 (4, 1) and P4 (5, 4). What is the average waiting time under preemptive SJF (SRTF) scheduling?
- A3 ms
- B2 ms
- C4 ms
- D5 ms
Correct answer: A
Four processes arrive in a system with (arrival time, burst time) in ms as P1 (0, 7), P2 (2, 4), P3 (4, 1) and P4 (5, 4). What is the average waiting time under preemptive SJF (SRTF) scheduling?