DISK SCHEDULING

Experiment Number 2 : Shortest Seek Time First


To view Simulator, Click Here

Software
System Requirements : Chrome Web Browser
Windows :
Download jar file from the link provided above and run it directly.
Linux :
Command line to download Chrome Web Browser :
sudo apt-get install chromium-browser
Command line to run jar file :
java -jar (filename).jar

Steps to use Simulator :

Step 1 : Click on the link given above to go to Simulator Page. A new tab opens. The Simulator window looks like the image given below :
img
Step 2 : From this window, user can select the Algorithm , the Direction of Read/Write head, can enter the Sequence of cylinders, the Initial cylinder and the Final cylinder (for SCAN and CSCAN only). There are 3 buttons after these options. They are Plot , Compare and Go to Theory Page. Their use is explained with the example given below.
img
Step 3 : Consider the example given below :
image
Step 4 : From the question, we understand that the given data is the sequence of cylinders and the initial cylinder value is given. On the simulator page we select the algorithm as SSTF from the dropdown and direction is set to left. Enter the sequence without any comma or full stop. Enter only numbers separated by spaces.
img img
img
Step 5 : Now press Plot button to get the graph. Seek time is calculated and displayed below it. On hovering the values are showed respectively. Answer is displayed like the image given below :
img
Step 6 : The Compare button compares the same question with different algorithm with their respective seek time. It is plotted as a bar graph shown below this line graph. On hovering the values are showed respectively.
img
There are other options in the graph which is plotted and its uses are given below.
The icons seen in the simulation above graphs are of great use. Following are its properties:
Camera icon : img To download image in png format .
Magnifying glass : img To magnify a selected area.
Pan : img To move the graph in any direction.
Box Select : img To select a region in rectangular or square format.
Lasso Select : img To select a region in any manner.
‘+’ sign : img Zoom In .
‘-’ sign : img Zoom Out .
Auto scale & Reset Axes : img To bring the graph to original size and axes if zoomed in/out.
Toggle Spike Line : img Show the intersection point and value of points on the graph.
Show closest data on hover : img 'X’ & ‘Y’ coordinates will be displayed in a single box.
Compare data on hover : img ‘X’ & ‘Y’ coordinates will be displayed in two different boxes & compared.
imgUpon clicking on the types of line in graph :
Single Click will make that line invisible.
Double Click on those line will display the lines in graph.
The Go to Theory Page button takes the user back to the theory.
img