CS FundamentalsVery hardProduct company interview · GATE level
Each process in a system spends 70% of its time waiting for I/O, independently of the others. Using the model CPU utilisation = 1 - p^n, what is the smallest degree of multiprogramming n that achieves at least 75% CPU utilisation, and what utilisation does it give?
- A. n = 5, about 83%
- B. n = 3, about 66%
- C. n = 2, about 51%
- D. n = 4, about 76%
Correct answer: D. n = 4, about 76%
With p = 0.7: n = 1 gives 30%, n = 2 gives 1 - 0.49 = 51%, n = 3 gives 1 - 0.343 = 65.7%, n = 4 gives 1 - 0.2401 = 76%. So 4 processes are the minimum. The model assumes there is enough memory for all of them; once added processes no longer fit, page faults raise the effective I/O wait and utilisation falls - the onset of thrashing. Working the formula as p x n or using 0.3 as the wait probability gives the other answers.
More Operating Systems questions
- Round Robin is used with a quantum of 4 ms and a context-switch time of 1 ms. There are always 10 CPU-bound processes ready and none does…
- A TLB has 64 entries. With 4 KB pages, what is its reach (the memory it can map without a miss)? If 16 of the entries instead map 2 MB…
- Processes (arrival, burst) in ms: P1 (0, 10), P2 (1, 6), P3 (3, 2), P4 (5, 4), P5 (6, 1). Under preemptive SJF (SRTF), what is the average…
- Processes (arrival, burst) in ms: A (2, 6), B (3, 2), C (4, 1), D (12, 3), E (13, 2). The CPU is idle until the first arrival. Under…
- Round Robin, quantum 3 ms. Processes (arrival, burst): P1 (0, 7), P2 (1, 5), P3 (2, 3), P4 (4, 6). A process arriving at the same instant…
- Three CPU-bound processes arrive at time 0 in the order A (burst 5), B (burst 3), C (burst 8). Round Robin with quantum 2 is used. Not…