Question 25Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

In a disk system with 100 cylinders, the request to access the cylinder occur in following sequence: 34, 4, 7, 19, 10, 83, 2, 6, 20, 15. Assuming that the…

In a disk system with 100 cylinders, the request to access the cylinder occur in following sequence: 34, 4, 7, 19, 10, 83, 2, 6, 20, 15. Assuming that the head is currently at cylinder 50, then what is the time taken to satisfy all requests if it takes 1 second to move from one cylinder to another? (Shortest seek time first policy is used)
  1. A119 seconds
  2. B129 seconds
  3. C109 seconds
  4. D139 seconds
Show answerHide answer

Correct answer: (B) 129 seconds

Explanation

SSTF from 50: 34 (16), 20 (14), 19 (1), 15 (4), 10 (5), 7 (3), 6 (1), 4 (2), 2 (2), 83 (81). The total movement is 129 cylinders, so it takes 129 seconds.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 25 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.