Chapter 11 · Simulation

Disk Arm Scheduling

← Chapter 11
1.5/s

Disk Arm Scheduling

Pending read/write requests are cylinder numbers. The disk head starts at a given cylinder; the disk arm scheduling algorithm decides in which order the requests are served. The chart shows the head position (left to right) over time (top to bottom); the goal is to keep the total head movement (seek distance) small.

Usage

  • Choose an algorithm; for SCAN, C-SCAN, LOOK and C-LOOK also choose the initial direction.
  • Enter the head position, the highest cylinder number and the request queue (up to 50 requests separated by spaces), or use a preset scenario.
  • Play or step through; the list on the side shows the pending requests in service order.
  • The compare button shows the total head movement of all six algorithms.

Algorithms

FCFS
Arrival order.
SSTF
The nearest pending request; ties go to the one earlier in the queue.
SCAN
Sweeps to the disk edge, then reverses direction.
C-SCAN
Sweeps to the edge, jumps to the other edge, continues in the same direction.
LOOK
Like SCAN, but reverses at the last request.
C-LOOK
Like C-SCAN, but jumps from the last request to the first request on the other side.
Jump
The return jump serves no request; the Jump button decides whether this distance is added to the total.
Head
Requests on the cylinder where the head already is are served first.

Legend

head path return jump ✓ served next target ◇ disk edge

Keys

←→ stepSpace playHomeEnd first / lastEsc close