CS FundamentalsVery hardGATE CS

Lottery scheduling gives process A 30 tickets, B 20 and C 50. Over many scheduling decisions, what fraction of the time does B run, and what happens to that fraction if C blocks for a long I/O?

  1. A. 20%, unchanged while C is blocked
  2. B. 33%, rising to 50%
  3. C. 20%, falling to 10% while C is blocked
  4. D. 20%, rising to 40% while C is blocked

Correct answer: D. 20%, rising to 40% while C is blocked

B holds 20 of 100 tickets. While C is not runnable only A's 30 and B's 20 compete, so B wins 20/50 = 40% of the draws.

More Operating Systems questions

Exams that ask this topic