CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

Round Robin with quantum 3; processes (arrival, burst): A (0, 7), B (2, 4), C (4, 6), D (5, 3). A process arriving at the same moment another is preempted joins the queue first. When do C and D complete?

  1. A. C at 18, D at 15
  2. B. C at 20, D at 12
  3. C. C at 20, D at 15
  4. D. C at 17, D at 15

Correct answer: C. C at 20, D at 15

A 0-3, B 3-6 (C and D arrive meanwhile, queue A C D B), A 6-9, C 9-12, D 12-15 (done), B 15-16, A 16-17, C 17-20. So D finishes at 15 and C at 20.

More Operating Systems questions

Exams that ask this topic