CS FundamentalsHardGATE CS

Round Robin with quantum q and context-switch time s is used; every process does exactly one CPU burst of T ms with T < q. What is the CPU efficiency?

  1. A. q / (q + s)
  2. B. T / (q + s)
  3. C. (T - s) / T
  4. D. T / (T + s)

Correct answer: D. T / (T + s)

Since every burst finishes within one quantum, each dispatch gives T ms of work followed by one switch of s ms, so efficiency = T / (T + s); the quantum length is irrelevant here.

More Operating Systems questions

Exams that ask this topic