GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 20(b)

Bound completion time for disk requests

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

GATE 2001, Q20(b) Descriptive
Report issue

I/O & Disk Scheduling

Question 20(b), GATE 2001: Disk has tracks 0–99, rotates at 3000 rpm, has 100 sectors per track and takes 0.2 ms to move one track. Initially 100 arbitrary requests, no new arrivals, head starts at track 0; determine worst-case completion time under elevator scheduling.
Question 20(b), GATE 2001: Disk has tracks 0–99, rotates at 3000 rpm, has 100 sectors per track and takes 0.2 ms to move one track. Initially 100 arbitrary requests, no new arrivals, head starts at track 0; determine worst-case completion time under elevator scheduling.
Question 20(b), GATE 2001: Disk has tracks 0–99, rotates at 3000 rpm, has 100 sectors per track and takes 0.2 ms to move one track. Initially 100 arbitrary requests, no new arrivals, head starts at track 0; determine worst-case completion time under elevator scheduling.
Tap to enlarge
Answer & solution

Answer: Seek-only maximum 19.8 ms. Under a conventional one-sector/request bound, total ≤2039.8 ms (see assumptions). (no official key was published)

Starting at the lowest track, all requests can be served in one upward sweep. The maximum head travel is 99 tracks, so seek time is at most 99×0.2=19.8 ms, attained if a request is at track 99. A revolution takes 60/3000 seconds=20 ms, and a single sector transfer takes 20/100=0.2 ms.

If each request reads one sector and one charges a separate worst-case rotational wait of up to one full revolution to every request, an additive bound is 19.8+100×(20+0.2)=2039.8 ms. A uniform-random-phase average latency would be 10 ms, yielding a different, average-model value 1039.8 ms; it is not a worst-case answer. If a convention counts a complete revolution as covering both wait and the requested sector transfer, the bound is instead 19.8+100×20=2019.8 ms.

The printed request description does not specify bytes/sectors per request, sector ordering at one track, or a rotational-latency convention. Therefore it does not determine a unique exact total completion time. The 19.8 ms seek bound is unambiguous; any fuller time must state its service assumptions. Independent per-request latency maxima are a conservative additive bound, not a proof that a single finite queue attains every maximum simultaneously.

Original paper, page 10