Skip to content

ISRO Scientist/Engineer CSE 2017Operating Systems › Disk Scheduling and File Systems

ISRO Scientist/Engineer CSE 2017 PYQ: Consider a disk sequence with 100 cylinders. The request to access the cylinder occur in the following…

Consider a disk sequence with 100 cylinders. The request to access the cylinder occur in the following sequence :

4,34,10,7,19,73,2,15,6,20

Assuming that the head is currently at cylinder 50, what is the time taken to satisfy all requests if it
takes $2\,ms$ to move from one cylinder to adjacent one and shortest seek time first policy is used?

  1. A
    190
  2. B
    238
    Correct answer
  3. C
    233
  4. D
    276

Answer

(B) $238$

Approach

Apply the Shortest Seek Time First (SSTF) scheduling policy: at each step, service the pending request whose cylinder is closest to the current head position. Track the total head movement in cylinders, then multiply by the per-cylinder seek time of 2 ms.

Reviewed by ISRO IQ Editorial Team.