CS FundamentalsVery hardGATE CS

A three-level feedback queue: Q0 (quantum 2), Q1 (quantum 4), Q2 (FCFS). New processes join Q0 and preempt lower queues; a process that uses its whole quantum drops one level. Arrivals (time, burst): A (0, 13), B (1, 5), C (3, 2), D (10, 3). Ignoring switch cost, what is the average turnaround time?

  1. A. 10.00
  2. B. 12.25
  3. C. 11.50
  4. D. 13.00

Correct answer: C. 11.50

Timeline: A 0-2, B 2-4, C 4-6 (done at 6), A 6-10, D 10-12, B 12-15 (done), D 15-16 (done), A 16-23. Turnaround: A 23, B 14, C 3, D 6, average 46/4 = 11.5.

More Operating Systems questions

Exams that ask this topic