CS FundamentalsVery hardGATE CS (PYQ pattern)

Round Robin with quantum 4 ms. Processes (arrival, burst) in ms: P1 (0, 7), P2 (1, 4), P3 (2, 9), P4 (3, 5), P5 (16, 3). A process that arrives at the same instant a quantum expires is placed in the ready queue BEFORE the preempted process. Context switches take no time. What is the average waiting time?

  1. A. 11.2 ms
  2. B. 17.2 ms
  3. C. 11.6 ms
  4. D. 12.6 ms

Correct answer: C. 11.6 ms

Timeline (finish times): {'P2': 8, 'P1': 19, 'P5': 26, 'P4': 27, 'P3': 28}. Waiting = turnaround - burst, averaged gives 11.6; the opposite tie-break gives 11.2.

More Operating Systems questions

Exams that ask this topic