GATE / CS ARCHIVE

GATE CSE 2009 / QUESTION 51

Convert cylinder-head-sector address

Operating Systems · I/O & Disk Scheduling · Full GATE CSE 2009 paper

GATE 2009, Q51 2 marks · MCQ
Not in GATE 2027 syllabusReport issue

I/O & Disk Scheduling

Question 51, GATE 2009: Disk has 63 sectors/track, 10 platters with 2 surfaces each, 1000 cylinders. Zero-based address(c, h, s) orders sectors then surfaces then cylinders. Convert(400, 16, 29) to linear sector index: A 505035; B 505036; C 505037; D 505038.
Question 51, GATE 2009: Disk has 63 sectors/track, 10 platters with 2 surfaces each, 1000 cylinders. Zero-based address(c, h, s) orders sectors then surfaces then cylinders. Convert(400, 16, 29) to linear sector index: A 505035; B 505036; C 505037; D 505038.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

There are 10×2=20 recording surfaces, hence 20 tracks per cylinder. With 63 sectors per track and all indices starting at zero, linear sector index = ((c×20)+h)×63+s. For (400, 16, 29) this is (8000+16)×63+29=505008+29=505037, option C. No one-based correction applies because the shared statement explicitly labels the first sector (0, 0, 0) as sector 0.

There are 20 tracks per cylinder because each recording surface supplies one track at that radius. Convert cylinder and surface to track index 400·20+16=8016. Convert to sector index 8016·63+29=505037. Every multiplication moves one level down the address hierarchy. The explicit zero-based convention means no extra 1 is added at the end.

Original paper, page 11