Write a C Program for Scan/ Elevator disk scheduling in operating systems
Theory
In Scan / Elevator Algorithm, the disk arm moves into a
particular direction till the end, completing all the
requests coming in its way, and then it turns backend
moves in the reverse direction completing requests coming
in its way.
Program
Input
Enter Number of Requests:8
Enter Requests sequence:95 180 34 119 11 123 62 64
Enter Initial Head Positions:50
Enter Total Disk size:200
Enter Head Movements Directions(high = 1 and low = 0):1