GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 20(a)

Compute elevator seek time

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

GATE 2001, Q20(a) Descriptive
Report issue

I/O & Disk Scheduling

Question 20(a), 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. Requests are tracks 32,7,45,5,10; head starts at 25 moving upward.
Question 20(a), 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. Requests are tracks 32,7,45,5,10; head starts at 25 moving upward.
Question 20(a), 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. Requests are tracks 32,7,45,5,10; head starts at 25 moving upward.
Tap to enlarge
Answer & solution

Answer: SCAN: 33.6 ms; LOOK interpretation: 12 ms. (no official key was published)

Under strict SCAN, continue toward the physical end 99 before reversing. Requests are served in order 32,45,10,7,5, with traversal 25→32→45→99→10→7→5. Distance is (99−25)+(99−5)=74+94=168 tracks. Multiply by 0.2 ms/track to get 33.6 ms. Stop measuring once the final request at 5 is served; there is no need to continue to 0.

Some textbooks use “elevator” for LOOK, which reverses at the last pending request, 45, rather than at track 99. That traversal covers (45−25)+(45−5)=20+40=60 tracks, giving 12 ms. The source does not explicitly distinguish these conventions, so both are reported with their policies. Rotation rate and sector count do not enter a seek-time-only answer.

Original paper, page 10