CS FundamentalsHardGATE CS
A disk spins at 15,000 RPM; average seek is 3.5 ms; transfer rate is 200 MB/s. What is the average time for a random 64 KB read?
- A. about 3.8 ms
- B. about 7.8 ms
- C. about 2.3 ms
- D. about 5.8 ms
Correct answer: D. about 5.8 ms
Rotation = 4 ms, average latency = 2 ms; transfer 64 KB / 200 MB/s ≈ 0.31 ms. Total ≈ 3.5 + 2 + 0.31 ≈ 5.8 ms.
More Operating Systems questions
- How many times is "x" printed? (Every fork() succeeds.) c int main() { if (fork() == 0) { if (fork() == 0) fork(); } printf("xn"); }
- How many times is "x" printed? (Every fork() succeeds.) c int main() { for (int i = 0; i < 2; i++) { fork(); fork(); } printf("xn"); }
- How many times is "x" printed? (Every fork() succeeds.) c int main() { if (fork() || fork()) fork(); printf("xn"); }
- Semaphores a = 1, b = 0. P: wait(a); print 1; signal(b); signal(b). Q: wait(b); print 2; signal(a). R: wait(b); print 3. Each runs once…
- Shared x = 1. T1 does x = x + 1; T2 and T3 each do x = x 2; (load, compute, store, no locks). How many distinct final values of x are…
- How many of these statements about threads are correct? 1. A thread that calls exit() terminates the whole process. 2. If one thread…