Write a linux program that implements the c-scan disk scheduling algorithms. we
ID: 3762936 • Letter: W
Question
Write a linux program that implements the c-scan disk scheduling algorithms. we assume that the disk arm moves upwards(towards the edge) initially.
The program takes two inputs
- the starting position
- a disk request file
the program generates two outputs
- The schedule sequence
- The total disk seek distance
disk request file
test
assume your program is called iosched
1. to run the program
$iosched 2000 disk-reqeust-file
2069,2296,....
total disk seek distance is nnnnn