Disk Structure: Blocks, Where The Logical Block Is The Smallest Unit of Transfer. The
Disk Structure: Blocks, Where The Logical Block Is The Smallest Unit of Transfer. The
The I/O requests are served in the order in which they reach. See
below (total head movement=640 cylinders)
FCFS is a fair scheduling algorithm but not an optimal one.
Shortest-Seek-Time-First (SSTF)
Selects the request with the minimum seek time from the current
head position.
SSTF scheduling is a form of SJF CPU scheduling
May cause starvation of some requests
Is not optimal.
Illustration shows total head movement of 236 cylinders.
SCAN Scheduling
The disk arm starts at one end of the disk, and moves toward the
other end, servicing requests until it gets to the other end of the disk,
where the head movement is reversed and servicing continues.
Sometimes called the elevator algorithm.
Illustration shows total head movement of 208 cylinders
(head is moving towards cylinder 0).
C-SCAN Scheduling
Version of C-SCAN
Arm only goes as far as the last request in each direction, then
reverses direction immediately, without first going all the way to the
end of the disk.