recategorized by
379 views
5 votes
5 votes
Cylinder a disk queue with requests for $\text{I/O}$ to blocks on cylinders $191, 18, 11, 61, 137, 41, 2.$ The C-LOOK scheduling algorithm is used. The head is initially at cylinder number $100$, moving towards $0$ on its servicing pass. The cylinders are numbered from $0$ to $199$. The total head movement (in number of cylinders) incurred while servicing these requests is ________
recategorized by

1 Answer

Best answer
6 votes
6 votes
Version of C-SCAN. Arm only goes as far as the last request in each direction, then reverses direction immediately, without first going all the way to the end of the disk.  
Total head movements $ = \mid 100 - 2 \mid  +  \mid 2 - 191 \mid  +  \mid 191 - 137 \mid = 98 + 189 + 54 = 341$.

So, the correct answer is $341.$

Reference: https://cse.buffalo.edu/~bina/cse421/fall2006/DiskSchedulingNov10.pdf
selected by
Answer:

Related questions