CS FundamentalsHardGATE CS

Processes (arrival, burst, priority) with a smaller number meaning higher priority: P1 (0, 4, 3), P2 (1, 3, 2), P3 (2, 1, 4), P4 (3, 5, 1), P5 (4, 2, 2). Under PREEMPTIVE priority scheduling (equal priorities served FCFS), what is the average turnaround time?

  1. A. 9.4 ms
  2. B. 8.8 ms
  3. C. 6.4 ms
  4. D. 7.4 ms

Correct answer: A. 9.4 ms

Schedule: P1 0-1 | P2 1-3 | P4 3-8 | P2 8-9 | P5 9-11 | P1 11-14 | P3 14-15. P5 has the same priority as the running P2 and does not preempt it. Average turnaround = 9.4 ms; the non-preemptive version gives 8.8.

More Operating Systems questions

Exams that ask this topic