CS FundamentalsHardGATE CS

Processes typically run 40 ms of CPU before blocking for I/O. Round Robin uses a quantum of 8 ms and each context switch costs 2 ms. What fraction of CPU time does useful work?

  1. A. 80%
  2. B. 95%
  3. C. 75%
  4. D. 67%

Correct answer: A. 80%

Each 40 ms burst is cut into 5 quanta, each followed by a 2 ms switch, so 40 ms of work costs 40 + 10 = 50 ms: 80%. Using q / (q + s) = 8/10 gives the same here because the burst is a multiple of q.

More Operating Systems questions

Exams that ask this topic