CS FundamentalsHardGATE CS

Processes (arrival, burst): P1 (0, 5), P2 (1, 3), P3 (3, 6), P4 (4, 2), P5 (10, 4), scheduled by SRTF. During the first 12 ms (time 0 to 12), how many processes complete?

  1. A. 3
  2. B. 2
  3. C. 4
  4. D. 5

Correct answer: A. 3

SRTF schedule: P1 0-1 | P2 1-4 | P4 4-6 | P1 6-10 | P5 10-14 | P3 14-20. Count completion times that are at most 12.

More Operating Systems questions

Exams that ask this topic