CS FundamentalsHardTCS NQT · Infosys pattern

Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using Round Robin with time quantum 2 ms, what is the average turnaround time? A process arriving at the same instant a quantum expires joins the ready queue before the preempted process.

  1. A. 8.75 ms
  2. B. 9.00 ms
  3. C. 11.00 ms
  4. D. 5.00 ms

Correct answer: B. 9.00 ms

Gantt: P1 0–2, P2 2–4, P1 4–6, P3 6–7, P2 7–9, P4 9–11, P1 11–13, P4 13–15, P1 15–16. Completion 16, 9, 7, 15 → turnaround 16, 7, 3, 10 = 36/4 = 9 ms. 5 ms is the average waiting time.

More Operating Systems questions

Exams that ask this topic