SCAN, C_SCAN, and LOOK disk scheduling algorithms in Java
Not what you're looking for?
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.
Purchase this Solution
Solution Summary
Attached implementations start with the head movement from lower cylinder towards higher cylinder.
Solution Preview
Please find attached 361562.zip that contains the implementations for the SCAN, C_SCAN, and LOOK disk scheduling algorithms.
Content of zip file is follows.
Archive: 361562.zip
Length ...
Purchase this Solution
Free BrainMass Quizzes
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
C# variables and classes
This quiz contains questions about C# classes and variables.
Javscript Basics
Quiz on basics of javascript programming language.