Question: Write a program called hddSched . cpp that simulates the working of different disk scheduling algorithms, such as: First - Come, First - Served (
Write a program calledhddSchedcppthat simulates the working of different disk scheduling algorithms, such as:
FirstCome, FirstServed FCFSShortest Seek Time First SSTFSCAN Elevator AlgorithmCSCAN Circular SCAN
The program should take as input a list of disk requests in terms of cylinder numbers and the initial position of the disk head.
Calculate and display the total seek time total head movement for each algorithm.
Compare and print the performance of each algorithm based on seek time for a given set of input requests.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
