CS FundamentalsVery hardGATE CS

Round Robin with quantum 3 ms is used for P1 (arrival 0, burst 5), P2 (1, 3), P3 (2, 8), P4 (3, 2) and P5 (4, 4). A process arriving during a running slice joins the ready queue before the preempted process is re-queued. At what time does P3 complete?

  1. A. 20 ms
  2. B. 22 ms
  3. C. 24 ms
  4. D. 18 ms

Correct answer: B. 22 ms

Timeline: P1 0-3, P2 3-6, P3 6-9, P4 9-11, P1 11-13, P5 13-16, P3 16-19, P5 19-20, P3 20-22. P3 finishes at 22 ms.

More Operating Systems questions

Exams that ask this topic