899 views
2 votes
2 votes

Given a disk with 100 cylinders (0 to 99). Exactly one time unit is required to move the read/write head from one cylinder to the next. At time 0 the heads are at cylinder 0 and no requests are pending. The following six requests arrive at times shown below:

Time :       0 10 20 70 80 90

Cylinder : 21 75 16 68 2 17

Note that once heads are moving, arrival of new requests will not alter the intended destination of the heads in movement. Assuming, that rotational and transfer times are negligible, the total time required for the Scan algorithm is _____

1 Answer

Best answer
3 votes
3 votes

disk with 100 cylinders →  (0 to 99)

Initially we are at location 0

We have to use SCAN algorithm.

 

3fa895ca-07b8-47bf-a4d1-371a2f677689

  

selected by

Related questions

2 votes
2 votes
2 answers
2
2 votes
2 votes
1 answer
4