CS FundamentalsHardGATE CS

Processes (arrival, burst): P1 (0, 6), P2 (1, 8), P3 (2, 7), P4 (3, 3). Under SRTF, what is the turnaround time of P2?

  1. A. 23 ms
  2. B. 15 ms
  3. C. 26 ms
  4. D. 25 ms

Correct answer: A. 23 ms

SRTF: P1 0-6 | P4 6-9 | P3 9-16 | P2 16-24. P2 completes at 24, so its turnaround is 24 − 1 = 23 ms (its waiting time is 15).

More Operating Systems questions

Exams that ask this topic