CS FundamentalsHardGATE CS

Processes (arrival, burst, priority; smaller number = higher priority): P1 (0, 3, 2), P2 (1, 6, 1), P3 (2, 4, 3), P4 (12, 2, 1), P5 (13, 3, 2). Under NON-preemptive priority scheduling, what is the average waiting time?

  1. A. 3.8 ms
  2. B. 2.4 ms
  3. C. 6 ms
  4. D. 3.4 ms

Correct answer: B. 2.4 ms

Schedule: P1 0-3 | P2 3-9 | P3 9-13 | P4 13-15 | P5 15-18. P1 runs first because it is alone at time 0; non-preemption keeps P2 waiting until 3. Average waiting = 2.4; preemptive priority gives 3.8.

More Operating Systems questions

Exams that ask this topic