CS FundamentalsHardProduct company interview · GATE level

A disk has cylinders 0 to 199. Head is at cylinder 50, moving towards cylinder 199. Pending requests: 182, 20, 97, 64, 160. Using C-SCAN (service requests up to 199, jump to 0 — counted as seek distance 199 — then continue servicing upward), what is the total head movement?

  1. A. 300
  2. B. 399
  3. C. 368
  4. D. 349

Correct answer: C. 368

Upward from 50: 50→64→97→160→182→199 = 14+33+63+22+17 = 149. Jump 199→0 counts as 199. Then 0→20 = 20. Total = 149 + 199 + 20 = 368 cylinders.

More Operating Systems questions

Exams that ask this topic