CS FundamentalsHardGATE CS

Processes (arrival, burst) in ms: A (2, 6), B (3, 2), C (4, 1), D (12, 3), E (13, 2). The CPU is idle until the first arrival. Under non-preemptive SJF, what is the average turnaround time?

  1. A. 2.4 ms
  2. B. 5.2 ms
  3. C. 12 ms
  4. D. 4 ms

Correct answer: B. 5.2 ms

Schedule: A 2-8 | C 8-9 | B 9-11 | D 12-15 | E 15-17 (D and E arrive after the CPU becomes free at 11, so the CPU idles until 12). Turnaround = completion - arrival; the average is 5.2 ms. Averaging completion times or waiting times are the common slips.

More Operating Systems questions

Exams that ask this topic