CS FundamentalsHardDeloitte · IBM campus pattern
Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 2, burst 9), P3 (arrival 3, burst 1), P4 (arrival 5, burst 5). 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. 7 ms
- B. 9 ms
- C. 12 ms
- D. 10 ms
Correct answer: B. 9 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, P3 7, P4 12, P2 21 and average turnaround 9 ms. Running strictly in arrival order (FCFS) instead gives 12 ms.
More Operating Systems questions
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 8), P2 (arrival 3, burst 3), P3 (arrival 4, burst 4), P4 (arrival 6, burst 7), P5…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 8), P2 (arrival 3, burst 3), P3 (arrival 4, burst 4), P4 (arrival 6, burst 7), P5…
- Processes (arrival, burst, priority — a smaller number means higher priority): P1 (arrival 0, burst 8, priority 2), P2 (arrival 3, burst…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 8), P2 (arrival 3, burst 3), P3 (arrival 4, burst 4), P4 (arrival 6, burst 7), P5…
- Reference string: 1, 4, 1, 6, 2, 3, 6, 1, 2, 4, 3, 6, 4. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal…
- Reference string: 1, 4, 1, 6, 2, 3, 6, 1, 2, 4, 3, 6, 4. With 3 frames, initially empty, how many page faults does FIFO replacement cause?