CS FundamentalsHardTCS Digital · Infosys

Processes P1 (arrival 0, burst 8), P2 (1, 4), P3 (2, 9) and P4 (3, 5) are scheduled by SRTF (preemptive shortest remaining time first). What is the average waiting time?

  1. A. 5.5 ms
  2. B. 7.25 ms
  3. C. 8 ms
  4. D. 6.5 ms

Correct answer: D. 6.5 ms

Completion times are 17, 5, 26, 10; waiting = completion - arrival - burst = 9, 0, 15, 2, an average of 6.5 ms.

More Operating Systems questions

Exams that ask this topic