CS FundamentalsHardGATE CS

Under FCFS, a long job L (burst 20) and three short jobs (burst 2 each) are scheduled. Case 1 arrivals: L at 0, S1 at 1, S2 at 1, S3 at 2. Case 2 arrivals: S1 at 0, S2 at 0, S3 at 1, L at 2. What are the average waiting times in Case 1 and Case 2?

  1. A. 2.25 and 15.5 ms
  2. B. 16.5 and 2.25 ms
  3. C. 15.5 and 3 ms
  4. D. 15.5 and 2.25 ms

Correct answer: D. 15.5 and 2.25 ms

Case 1: L waits 0, S1 waits 19, S2 21, S3 22, average 15.5. Case 2: S1 0, S2 2, S3 3, L 4, average 2.25. This is the convoy effect: short jobs stuck behind a long one inflate FCFS waiting time.

More Operating Systems questions

Exams that ask this topic