SCAN goes all the way to the disk end even if there are no requests there, wasting time. Can we optimize this?
LOOK is a variant of SCAN that only goes as far as the last request in each direction, then reverses — doesn’t go to disk end unnecessarily.
- Move disk arm in current direction
- Service requests along the way
- When past the last request in that direction, reverse
- Don’t go to physical disk end (unlike SCAN)
- More efficient than SCAN (no unnecessary travel to disk end)
- Still no starvation (like SCAN)
- Only goes as far as the furthest request
- C-LOOK is the C-SCAN version of LOOK
- Built from: Disk Scheduling, SCAN
- Builds into: C-LOOK
- Related: C-SCAN
- Contrasts with: SCAN (stops at last request vs goes to end)
- Must track the furthest request in each direction
- Slightly more complex than SCAN
- Default in many modern OSs