GATE / CS ARCHIVE

GATE CSE 2009 / QUESTION 52

Convert sector number to disk address

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

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

I/O & Disk Scheduling

Question 52, GATE 2009: For the same disk with 20 surfaces/cylinder and 63 sectors/track, convert zero-based linear sector 1039 to(c, h, s): A(0, 15, 31); B(0, 16, 30); C(0, 16, 31); D(0, 17, 31).
Question 52, GATE 2009: For the same disk with 20 surfaces/cylinder and 63 sectors/track, convert zero-based linear sector 1039 to(c, h, s): A(0, 15, 31); B(0, 16, 30); C(0, 16, 31); D(0, 17, 31).
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Each cylinder contains 20×63=1260 sectors. Divide 1039 by 1260: cylinder c=0 with remainder 1039. Then 1039=16×63+31, giving surface h=16 and sector s=31. Thus the address is (0, 16, 31), option C. This uses the zero-based indexing explicitly defined in the common data on physical page 11.

Invert the mixed-radix calculation. One cylinder spans 1260 sectors, so 1039 lies in cylinder 0. Divide the remainder by 63: quotient 16 is the surface and remainder 31 is the sector. Check by recomposition:((0·20)+16)·63+31=1039. This is C; options differing by one reveal the common mistake of silently switching to one-based counting.

Original paper, page 12