CS FundamentalsHardGATE

Processes (arrival, burst) in ms: P1 (arrival 0, burst 4), P2 (arrival 2, burst 6), P3 (arrival 4, burst 2), P4 (arrival 7, burst 8). Non-preemptive Shortest Job First is used (a process already running is never interrupted; ties go to the earlier arrival). What is the average turnaround time?

  1. A. 7.75 ms
  2. B. 7.25 ms
  3. C. 8.25 ms
  4. D. 5.25 ms

Correct answer: B. 7.25 ms

At each point the CPU frees up, the shortest ready burst is picked next without preempting the running process, giving completion times P1 4, P3 6, P2 12, P4 20 and average turnaround 7.25 ms. Running strictly in arrival order (FCFS) instead gives 8.25 ms.

More Operating Systems questions

Exams that ask this topic