CS FundamentalsHardDeloitte · IBM campus pattern
Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3). 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?
- A. 10.25 ms
- B. 12.25 ms
- C. 14.75 ms
- D. 13.25 ms
Correct answer: B. 12.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 6, P4 9, P3 16, P2 24 and average turnaround 12.25 ms. Running strictly in arrival order (FCFS) instead gives 14.75 ms.
More Operating Systems questions
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 5), P2 (arrival 2, burst 2), P3 (arrival 4, burst 9), P4 (arrival 5, burst 4), P5…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 5), P2 (arrival 2, burst 2), P3 (arrival 4, burst 9), P4 (arrival 5, burst 4), P5…
- Processes (arrival, burst, priority — a smaller number means higher priority): P1 (arrival 0, burst 5, priority 1), P2 (arrival 2, burst…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 5), P2 (arrival 2, burst 2), P3 (arrival 4, burst 9), P4 (arrival 5, burst 4), P5…
- 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). They…
- 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)…