To Implement Disk Scheduling Algorithms

Procedure

  1. Select Algorithm: Choose the disk scheduling algorithm you want to test: FCFS, SSTF, SCAN, or C-SCAN.
  2. Input the required values: Enter the desired comma-separated cylinder numbers representing disk requests in the input field. Also, enter the initial head position of the disk and direction of movement(if required).
  3. Submit: Click the "SUBMIT" button to initiate the simulation.
  4. View Results: The simulation will automatically generate a visual representation of the disk head movement and an output displaying the seek sequence. Also, calculate the average seek time.
  5. Calculate Average Seek Time: Enter the required values in the input box and click on the "SUBMIT" button.
    Formula:
    Average Seek Time =  Total Seek Time Total Seek Operations
  6. Analyze Results: Examine the graph and the data in the output to understand the following:
    • Head Movement Pattern: Observe the path the disk head takes to service the requests.
    • Seek Time: Analyze how the seek time (distance traveled) varies for each request and the total seek time for the entire process.
    • Algorithm Efficiency: Compare the performance of different algorithms based on their total seek time and the pattern of head movement.
  7. Repeat for Different Scenarios: Experiment with different request queues, head positions, and algorithm selections to observe how the results change.