CS FundamentalsHardProduct-company interview pattern
A system runs 4 independent processes, each spending 80% of its time waiting for I/O. Assuming waits are independent, what is the approximate CPU utilisation?
- A. About 80%
- B. About 20%
- C. About 59%
- D. About 41%
Correct answer: C. About 59%
The CPU is idle only when all four processes are waiting at once: 0.8⁴ ≈ 0.41. Utilisation = 1 − 0.8⁴ ≈ 0.59. 41% is the idle fraction; 80% wrongly adds 4 × 20%.
More Operating Systems questions
- Processes (arrival, burst, priority — lower number is higher priority): P1 (0, 5, 3), P2 (1, 3, 1), P3 (2, 4, 4), P4 (4, 2, 2). Under…
- int A[256][256] is stored in row-major order, and a page holds 512 ints (two rows). The process has only ONE frame for A, initially empty…
- Processes (times in ms): A (arrival 0, burst 9), B (arrival 1, burst 4), C (arrival 3, burst 6), D (arrival 5, burst 2), E (arrival 8…
- Processes (times in ms): A (arrival 0, burst 9), B (arrival 1, burst 4), C (arrival 3, burst 6), D (arrival 5, burst 2), E (arrival 8…
- Processes (arrival, burst, priority; a smaller number means higher priority): A (0, 9, 3), B (1, 4, 1), C (3, 6, 4), D (5, 2, 2), E (8, 5…
- Processes (arrival, burst) in ms: P1 (0, 6), P2 (2, 5), P3 (4, 2), P4 (5, 8), P5 (7, 3). They are scheduled by non-preemptive Highest…