CS FundamentalsHardGATE CS

Preemptive priority scheduling (lower number = higher priority) is used for P1 (arrival 0, burst 7, priority 3), P2 (1, 4, 1), P3 (2, 2, 4) and P4 (3, 5, 2). What is the average turnaround time?

  1. A. 10.75 ms
  2. B. 9.5 ms
  3. C. 10.5 ms
  4. D. 11 ms

Correct answer: A. 10.75 ms

Completion times are P2 = 5, P4 = 10, P1 = 16, P3 = 18; turnaround times (completion - arrival) are 16, 4, 16, 7, so the average is 10.75 ms.

More Operating Systems questions

Exams that ask this topic