CS FundamentalsVery hardGATE CS (PYQ pattern)

Round Robin with quantum 4 ms; processes (arrival, burst) in ms: A (0, 11), B (2, 6), C (3, 3), D (5, 9), E (8, 2). A process that arrives while another is running enters the queue before the preempted one. Which process has the largest waiting time, and what is it?

  1. A. A, 15 ms
  2. B. D, 17 ms
  3. C. B, 15 ms
  4. D. E, 11 ms

Correct answer: B. D, 17 ms

Completion times are {'C': 11, 'E': 21, 'B': 23, 'A': 26, 'D': 31}; waiting = completion - arrival - burst gives {'A': 15, 'B': 15, 'C': 5, 'D': 17, 'E': 11}, so D waits longest.

More Operating Systems questions

Exams that ask this topic