The GATE Grind

GATE 2014 CS (CS1) – Question 29

Operating System · File Systems and Disk Performance · 1 mark · Numerical answer

A disk has cylinders 0–200. The arm is at 100 with queued requests 30,85,90,100,105,110,135,145. With Shortest-Seek-Time-First scheduling, how many requests are serviced before the request for cylinder 90?

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 3 to 3

Explanation

Starting at100, service the queued100 request first. The nearest next request is105, followed by110. Cylinder90 is then20away, nearer than135 at25away, and is selected next. Thus **three requests** have been serviced before90; the90 request itself is not counted.