CS FundamentalsModerateGATE CS

At time 10 the CPU becomes free and four jobs wait: J1 (arrived 2, burst 6), J2 (arrived 5, burst 2), J3 (arrived 1, burst 10), J4 (arrived 8, burst 1). Which job does Highest Response Ratio Next pick?

  1. A. J1
  2. B. J4
  3. C. J3
  4. D. J2

Correct answer: D. J2

Response ratio = (waiting + burst)/burst: J1 (8 + 6)/6 = 2.33, J2 (5 + 2)/2 = 3.5, J3 (9 + 10)/10 = 1.9, J4 (2 + 1)/1 = 3. J2 wins; SJF would pick J4 and FCFS J3.

More Operating Systems questions

Exams that ask this topic