The scan is a disk scheduling algorithm that serves requests generated by memory management unit.
Let’s consider a disk with 200 tracks(0-199)
, a request queue containing track numbers [82,170,43,140,24,16,190]
, and the current position of read-write head=50
. The requirement is to find the total number of track movements in cylinders.