IN JAVA:
Write a program that implements the following disk-schedulingalgorithms:
a. FCFS
b. SSTF
c. SCAN
d. C-SCAN
Your program will service a disk with 5,000 cylinders numbered 0to 4,999. The program will be passed the initial position of thedisk head (as a parameter on the command line) and report the totalamount of head movement and total number of change of directionrequired by each algorithm under each of the following cases:
a)The program will generate a random series of 1,000 cylinderrequests and service them according to each of the algorithmslisted above.
b)The program will get a series of cylinder requests from theuser and service them according to each
PayPal Gateway not configured
PayPal Gateway not configured