CS FundamentalsHardGATE

Processes (arrival, burst) in ms: P1 (arrival 0, burst 9), P2 (arrival 2, burst 3), P3 (arrival 3, burst 4), P4 (arrival 7, burst 6). 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. 12.25 ms
  2. B. 11.75 ms
  3. C. 12.75 ms
  4. D. 9.75 ms

Correct answer: B. 11.75 ms

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

More Operating Systems questions

Exams that ask this topic