With a SCAN Disk Scheduling algorithm the disk arm will not access the tracks in
the order they were
requested. Instead it will move in one direction and service the requests coming in its path. After reaching
the end of disk (e.g. track 99), it will reverse its direction and again services the request arriving in
its path. Due to the movement of the arm going all the way up and down the number of tracks, the algorithm
is also known as elevator algorithm. The aim of this approach is to reduce the average seek time when
accessing a list of sectors.
In this case, using the same example as above: Starting Position: Track 20, list of tracks to access
[43,52,24,65,70,48,16,61] we can calculate the number of tracks crossed as follows:
Number of tracks crossed = |20-99| + |99-16| = 162
Seek Time = 162 x (Time to cross one track)
On average this algorithm will reduce the overall seek time (compared to a FCFS Disk Scheduling algorithm.