CS FundamentalsVery hardGATE CS (PYQ pattern)

Three processes all arrive at time 0 in the order A, B, C and are scheduled FCFS (non-preemptive on the CPU). Each alternates CPU burst, I/O burst, CPU burst (in ms): A (2, 9, 2), B (3, 5, 1), C (1, 11, 3). Each process has its own I/O device, and a process that finishes I/O joins the tail of the ready queue (a process that finishes I/O while another is running joins the queue in the order I/O completed). What is the total CPU idle time before the last process finishes?

  1. A. 10 ms
  2. B. 12 ms
  3. C. 7 ms
  4. D. 8 ms

Correct answer: D. 8 ms

Simulation: the last process finishes at t = 20 ms; total CPU work is 2+2+3+1+1+3 = 12, so idle = 20 - 12 = 8.

More Operating Systems questions

Exams that ask this topic