CS FundamentalsModerateAccenture · Capgemini pattern
Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using non-preemptive SJF (ties broken by arrival), what is the average turnaround time?
- A. 7.00 ms
- B. 8.00 ms
- C. 4.00 ms
- D. 8.75 ms
Correct answer: B. 8.00 ms
P1 runs 0–7 (only process at t = 0). At 7 all have arrived; shortest is P3 (7–8), then P2 (8–12), then P4 (12–16). Turnaround = 7, 10, 4, 11 → 32/4 = 8 ms. 4 ms is average waiting; 7 ms is what preemptive SRTF gives.
More Operating Systems questions
- A child process has terminated, but its parent has not yet called wait() to read its exit status. The child is now a:
- In a many-to-one thread model (many user-level threads mapped to one kernel thread), what happens when one thread makes a blocking system…
- Which disadvantage applies to linked file allocation but NOT to indexed allocation?
- A disk has cylinders 0–199 and the head is at cylinder 72. The request queue, in arrival order, is 110, 25, 160, 47, 130, 8, 95, 185. What…
- A disk spins at 7,200 RPM. What is its average rotational latency?
- Which statement about a page fault is correct?