GATE 2024 CS (CS2) – Question 53
Consider a disk with rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors. A file has content stored in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is _________
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 30.06
Explanation
6000 RPM means one rotation takes $60/6000=10$ ms.
- Average rotational latency $=10/2=5$ ms.
- Average seek time $=5$ ms.
- Transfer time for one sector $=10\text{ ms}/500\text{ sectors}=0.02$ ms.
The 3000 sectors are scattered randomly, so each one costs a full seek plus rotational latency plus its own transfer:
$$5+5+0.02=10.02\text{ ms}.$$
Total $=3000\times10.02\text{ ms}=30{,}060\text{ ms}=\mathbf{30.06}$ s.