CS FundamentalsVery hardGATE CS (PYQ pattern)

Round Robin with quantum 3 ms, three processes arriving at t = 0 with bursts (CPU, I/O, CPU) in ms: P0 (5, 4, 4), P1 (3, 6, 3), P2 (6, 2, 2). Each process has its own I/O device; a process finishing I/O joins the tail of the ready queue, and when an I/O completion coincides with a quantum expiry, the I/O completion is queued first. At what time does the last process finish?

  1. A. 25 ms
  2. B. 21 ms
  3. C. 28 ms
  4. D. 23 ms

Correct answer: D. 23 ms

Unit-step simulation: completion times are {1: 17, 2: 22, 0: 23}; total CPU work is 23 ms, so the CPU is idle for 0 ms.

More Operating Systems questions

Exams that ask this topic