CS FundamentalsModerateGATE CS (PYQ pattern)
A 7200 RPM disk has 500 sectors of 512 bytes per track and an average seek of 8 ms. A 1,048,576-byte file is stored in consecutive sectors beginning at a random rotational position of the first track. Moving to the next track costs a 1 ms head switch and the sectors are skewed so that no extra rotational delay is incurred beyond that 1 ms. Using the average rotational latency of half a revolution, what is the approximate time to read the file?
- A. 46.3 ms
- B. 50.3 ms
- C. 54.5 ms
- D. 57.8 ms
Correct answer: B. 50.3 ms
File = 2048 sectors = 4.096 tracks. Revolution = 8.33 ms, so transfer = 4.096 x 8.33 = 34.13 ms. Total = 8 seek + 4.17 latency + 34.13 + 4 head switches x 1 = 50.3 ms.
More Operating Systems questions
- A program loops over pages 1, 2, 3, 4, 5 six times in cyclic order (30 references) with 4 frames, initially empty. How many page faults…
- SJF predicts each process's next CPU burst by exponential averaging, tau(n+1) = a x t(n) + (1 - a) x tau(n), with a = 0.5 and tau(0) = 10…
- Assume every fork() succeeds. for (int i = 0; i < 4; i++) { if (fork() == 0 && i % 2 == 1) execl("/bin/true", "true", NULL); }…
- A machine with 4 KB pages and demand paging has a 6-byte memory-to-memory MOVE instruction stored at virtual address 0x0FFC. It copies 300…
- Six threads each take two locks in a fixed order and hold the first while acquiring the second: T1 takes A then B, T2: B then C, T3: C…
- Four processes (arrival, burst) in ms: A (0, 7), B (1, 2), C (2, 1), D (2, 2). Scheduling is non-preemptive. Compare non-preemptive SJF…