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?

  1. A. 46.3 ms
  2. B. 50.3 ms
  3. C. 54.5 ms
  4. 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

Exams that ask this topic