GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 17

Floppy read-time assumptions

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

GATE 1998, Q17 5 marks · Descriptive
Report issue

I/O & Disk Scheduling

Question 17, GATE 1998: Read 35 sectors on a soft-sectored, two-sided floppy, 8 sectors/track, 8 ms track step, 300 rpm, starting sector 3 of track 10 with head initially on track 10. Controller has one-sector buffer. Find total time.
Tap to enlarge
Answer & solution

Answer: 875 ms transfer time; a unique total needs rotational phase, layout/skew and servicing assumptions. (no official key was published)

One revolution takes 60/300=0.2 s=200 ms, so a sector takes 200/8=25 ms. Reading the 35 payload sectors therefore needs 35×25=875 ms of on-media transfer. Starting at sector 3, the track portions contain 6,8,8,8,5 sectors, so five surface-tracks are visited and four surface-track boundaries crossed.

A two-sided disk does not necessarily seek at all four boundaries. With cylinder-major allocation starting on side 0, the order is cylinder 10 side 0, cylinder 10 side 1, cylinder 11 side 0, cylinder 11 side 1, cylinder 12 side 0. Ignoring head-switch time, this requires two radial steps, totaling 16 ms. A simplified additive estimate with no initial or boundary rotational waiting is then 891 ms. If 'track' instead means successive tracks of one surface requiring four steps, the corresponding estimate is 907 ms.

Neither estimate is an unconditional exact answer. The initial angular position is not specified. Without track skew, an 8 ms seek after sector 8 can miss the start of sector 1, requiring a wait for its next revolution. Under the cylinder-major example, zero initial wait, aligned sector numbering and instantaneous head switches, each of the two step boundaries costs an entire 200 ms including seek plus rotational wait, giving 875+400=1275 ms. A suitably skewed layout changes that boundary cost.

Finally, a one-sector buffer does not specify how quickly the host drains it. Missing the next sector while transferring a buffer can add whole rotations. A defensible expression is 875 ms + initial rotational wait + radial-step time + head-switch time + boundary/buffer waiting. The supplied facts fix only some terms, so report assumptions rather than invent an exact total.

Original paper, page 7