CS FundamentalsHardGATE CS

A multilevel feedback queue has Q0 (RR, quantum 2), Q1 (RR, quantum 4) and Q2 (FCFS); a job that uses its full quantum drops one level, and a lower queue runs only when all higher ones are empty. Jobs A (3), B (9) and C (5) all arrive at time 0 in that order. When does each finish?

  1. A. A 7, B 17, C 14
  2. B. A 7, B 14, C 17
  3. C. A 3, B 17, C 12
  4. D. A 9, B 17, C 14

Correct answer: A. A 7, B 17, C 14

Q0: A 0-2, B 2-4, C 4-6, all demoted. Q1: A 6-7 (done), B 7-11 (3 left, demoted), C 11-14 (done). Q2: B 14-17.

More Operating Systems questions

Exams that ask this topic