Implement the look disk scheduling algorithm


Discuss teh below:

Q: Implement the SCAN, C_SCAN, and LOOK disk scheduling algorithms in Java. Namely, the first command-line parameter must be the current head position. The list of cylinder requests must be read from the standard input, you can use input redirection for reading it from a file. Assume that the total number of cylinders on disk is 200.

The code must have a separate method for each scheduling algorithm and they all have to be called from the main() method. The output of each scheduling method must be the head positions (number of cylinder) made to serve the requests form the list according to the corresponding schedule (e.g., 16 - 73 - 24) and the total number of cylinders passed by the head in the course of the algorithm.

98 183 37 122 14 124 65 67

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Implement the look disk scheduling algorithm
Reference No:- TGS01934695

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)