CBSE NET JUNE 2015 Paper II
Q. A disk drive has 100 cylinders,numbered 0 to 99. Disk request come to the disk driver for cylinders 12,26,24,4,42,8,50 in that order. The driver is currently serving a request at cylinder 24. A seek takes 6msec per cylinder moved. How much seek time is needed for the shortest seek time first (sstf) algorithm?
SSTF, Shortest time first algorithm
Total cylinder head movements= 02+14+04+04+38+08=70.
Seek time needed=70 x 6 = 420=0.42 sec.