959 views
2 2 votes
In a system SCAN, disk scheduling policy has been used. The number of tracks traversed by the head if the disk has 200 tracks and the requested tracks, in the order received, are 65, 48, 39, 08, 99, 164, 152, 38, 124

 

PS : Assume initial head position is at 65, and it will move towards 0

2 Answers

Best answer
1 1 vote

SCAN is also called the Elevator Algorithm. In this algorithm, the disk arm moves into a particular direction till the end, satisfying all the requests coming in its path, and then it turns back and moves in the reverse direction satisfying requests coming in its path.

 

 

Number of tracks moved by the head

= [(65 - 48) + (48 - 39) + (39 - 38) + (38 - 8) + (8 - 0) + (99 - 0) + (124 - 99) + (152 - 124) + (164 - 152)]

= [17 + 9 + 1 + 30 + 8 + 99 + 25 + 28 + 12]

= 229

 

selected by
2 2 votes
in the scan  algorithm of deisk scheduling …. always head move from one end to another end and if and service in its path serve it  so here go from 65  to zero and after this 0 to last service 164  so overallhead movement is 229
Position:
Show:

Related questions

3 3 votes
1 answers 1 answer
7.6k
7.6k views
LRU asked Dec 28, 2021
7,557 views
A disk drive has 5000 cylinders, numbered 0 to 4999. The drive is serving arequest at cylinder 143 currently and the previous request was at 125. The disk I/O queue, ...
3 3 votes
1 answers 1 answer
1.4k
1.4k views
LRU asked Nov 22, 2021
1,428 views
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 cylinde...
1 1 vote
1 1 answer
1.2k
1.2k views
ramakrushna asked Dec 22, 2021
1,228 views
We are given a hard disk of 500 GB. The performance details are :• 5000 RPM rotation rate• 200 cylinders, numbered from 1 to 200• Takes 1 + (n/20) milliseconds to move he...
2 2 votes
1 1 answer
98
98 views
GO Classes asked Aug 26
98 views
A disk contains tracks numbered from $0$ through $199$.The disk head is currently at track $184$.The pending requests, in arrival-list order, are $184, 187, 176, 182, 199...