CS FundamentalsVery hardGATE CS

Processes (arrival, burst): A (0, 3), B (2, 6), C (4, 4), D (6, 5), E (8, 2). By how much does SRTF reduce the average waiting time compared with non-preemptive SJF?

  1. A. 3.2 ms
  2. B. 0.4 ms
  3. C. 3.6 ms
  4. D. 1.4 ms

Correct answer: B. 0.4 ms

SJF: A 0-3 | B 3-9 | E 9-11 | C 11-15 | D 15-20, average waiting 3.6. SRTF: A 0-3 | B 3-4 | C 4-8 | E 8-10 | B 10-15 | D 15-20, average waiting 3.2. Difference = 0.4 ms.

More Operating Systems questions

Exams that ask this topic