Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Write a program that implements the following disk-scheduling algorithms: FCFS b. SSTF c. SCAN d. C-SCAN e. LOOK f. C-LOOK Your program will service...
Write a program that implements the following disk-scheduling algorithms:a. FCFSb. SSTFc. SCANd. C-SCANe. LOOKf. C-LOOKYour program will service a disk with 5,000 cylinders numbered 0 to4,999. The program will generate a random series of 1,000 cylinderrequests and service them according to each of the algorithms listedabove. The program will be passed the initial position of the disk head(as a parameter on the command line) and report the total amount ofhead movement required by each algorithm.Instead of having each algorithm look at the entire 1000 requests at once,restrict them to a “window” of 100 requests at a time. Also, loop the entire process about 10 times (i.e. 10 x(generate 1000 random requests and run the set on each algorithm)) and, at the end, output the average headmovements for each algorithm.Note for each iteration: once you generate 1000 random requests, each algorithm should run over that sameset of 1000.*Implementation in C