CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ
A disk spins at 7200 RPM, has 400 sectors of 512 bytes per track and an average seek of 5 ms. About how long does it take on average to read 4 KB stored in consecutive sectors of one track?
- A. 5.17 ms
- B. 13.5 ms
- C. 9.17 ms
- D. 9.33 ms
Correct answer: D. 9.33 ms
One rotation takes 60,000 / 7200 ≈ 8.33 ms, so average latency is 4.17 ms. 4 KB is 8 sectors, i.e. 8/400 of a rotation ≈ 0.17 ms. Total ≈ 5 + 4.17 + 0.17 = 9.33 ms.
More Operating Systems questions
- Processes typically run 40 ms of CPU before blocking for I/O. Round Robin uses a quantum of 8 ms and each context switch costs 2 ms. What…
- Three users run the same 60 KB editor (pure, reentrant code) and each has 20 KB of private data. With paging that lets the code pages be…
- In a monitor with Mesa (signal-and-continue) semantics, why must a consumer write while (count == 0) wait(notEmpty); instead of if (count…
- In the first readers-writers solution (readers share a count; the first reader locks out writers and the last reader lets them in), what…
- Five philosophers each pick up their left fork and then their right fork. Which change removes the possibility of deadlock without adding…
- Two processes use while (lock) ; lock = 1; / CS / lock = 0; with a plain shared variable (no atomic instruction). Which requirement of the…