Skip to content

ISRO Scientist/Engineer CSE 2017Operating Systems › Not yet assigned to a topic

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

Consider the disk system with 100 cylinders. The request to access the cylinders occur in the following sequence.

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

Assuming the head is currently at cylinder 50 what is the time taken to satisfy all requests if it takes 1 ms to move from one cylinder to adjacent one and shortest seek time first algorithm is used.

  1. A
    95 ms
  2. B
    119 ms
    Correct answer
  3. C
    233 ms
  4. D
    276 ms

Answer

(B) 119 ms

Approach

Apply the Shortest Seek Time First (SSTF) disk scheduling algorithm. Starting from the current head position (cylinder 50), repeatedly select the pending request with the smallest absolute distance from the current head position, move the head there, and accumulate the travel distance. Sum all head movements to get the total seek time in milliseconds.

Reviewed by ISRO IQ Editorial Team.