edited by
3,779 views
3 votes
3 votes

No. of seek distances with C-SCAN and C-LOOK?

edited by

1 Answer

5 votes
5 votes

Look at the difference between Scan, C-Scan, and C-Look. Snapshots are taken from Galvin.




Note: In C-Scan (in the graph) while coming back we don't process any request, we first come to the start, Then move back and start processing the requests.

Back to question.
Currently, we are in cylinder 143 and moving forward.

In C-Scan, 143 - 913 - 948 - 1022 - 1470 - 1509 - 1750 - 1774 - 4999   $\Rightarrow$ (4999 - 143) = 4856 moves

4999 - 0 $\Rightarrow$ 4999 moves

0 - 86 - 130. $\Rightarrow$ 130 moves

Total moves = 4856 + 4999 + 130 = 9985.

In C-Look, we don't' move to 4999 instead we move to the last request on the right side. Then we come back without servicing any request to the first request.Then we move right side to process request.

C-Look, 143 - 913 - 948 - 1022 - 1470 - 1509 - 1750 - 1774 $\Rightarrow$ (1774 - 143) = 1631 moves

1774 - 86 $\Rightarrow$ 1688 moves.

86 - 130. $\Rightarrow$ 44 moves.

Total = 3363 moves.

edited by

Related questions

0 votes
0 votes
1 answer
1
aritrik7849 asked Nov 24, 2023
712 views
Find seek time using FCFS,SSTF, SCAN.C-SCAN, LOOK for the following string98, 183, 37, 122, 14, 124, 65, 67Assume that request queue (0-199).and Head pointer 53