CS FundamentalsVery hardGATE CS

A disk: 7200 RPM, 500 sectors per track, average seek 4 ms. A file of 2000 sectors is read (a) when stored contiguously on consecutive tracks (assume one initial seek and latency, and ignore track-to-track movement), and (b) when its sectors are scattered randomly (every sector needs its own average seek and latency). Approximately how long does each take?

  1. A. (a) 41.5 ms, (b) 83.00 s
  2. B. (a) 8.2 ms, (b) 16.37 s
  3. C. (a) 41.5 ms, (b) 16.37 s
  4. D. (a) 41.5 ms, (b) 8.00 s

Correct answer: C. (a) 41.5 ms, (b) 16.37 s

Rotation = 8.33 ms. (a) 4 + 4.17 + 4 rotations × 8.33 = 41.5 ms. (b) per sector 4 + 4.17 + 0.017 ≈ 8.18 ms, × 2000 ≈ 16.37 s. Layout dominates disk performance.

More Operating Systems questions

Exams that ask this topic