Disk Scheduling Algorithms
Disk Scheduling Algorithms
Disk Scheduling Algorithms
The algorithms used for disk scheduling are called as disk scheduling
algorithms.
The purpose of disk scheduling algorithms is to reduce the total seek time.
1. Consider a disk queue with requests for I/O to blocks on cylinders 98,
183, 41, 122, 14, 124, 65, 67. The FCFS scheduling algorithm is used.
The head is initially at cylinder number 53. The cylinders are numbered
from 0 to 199. The total head movement (in number of cylinders)
incurred while servicing these requests is _______.
Solution-
= (65 – 53) + (67 – 65) + (67 – 41) + (41 – 14) + (98 – 14) + (122 – 98) +
(124 – 122) + (183 – 124)
= 12 + 2 + 26 + 27 + 84 + 24 + 2 + 59
= 236
Problem-02:
Consider a disk system with 100 cylinders. The requests to access the cylinders
occur in 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 1 ms to move from one cylinder to adjacent one and shortest
seek time first policy is used?
Solution