Disk Scheduling Algorithms Explained: SCAN, C-SCAN, LOOK and C-LOOK

Disk scheduling algorithms decide the order in which pending disk I/O requests are serviced. In operating-systems courses, four important methods are SCAN, C-SCAN, LOOK, and C-LOOK. They are easiest to understand by following how a magnetic hard-disk drive’s read/write head moves across numbered cylinders.
This guide explains each algorithm, compares its behaviour, and works through the same request queue step by step. It also clarifies a common source of confusion in exam answers: whether the head’s return or wraparound movement is included in the total.
What is disk scheduling?
When a storage device is busy, incoming read and write requests may wait in a queue. A disk scheduler chooses which pending request should be handled next. With a traditional hard disk drive (HDD), moving the actuator and read/write head to another cylinder takes time, so the order of requests can affect performance.
Two terms are useful:
- Seek time: the time required to move the HDD head to the cylinder containing the requested data.
- Rotational latency: the additional wait while the platter rotates the required sector under the head.
Most textbook problems calculate total head movement in cylinders. This is a simplified way to compare seek distances; it is not the same as measuring total I/O response time because it does not include every hardware, controller, queueing, or rotational delay.
Important assumptions before solving a problem
To calculate a disk-scheduling sequence correctly, identify these details first:
- The cylinder range, such as 0 to 199.
- The current head position.
- The pending request queue.
- The initial direction of head movement, if the question specifies one.
- Whether the calculation includes movement to a physical disk boundary and any circular wraparound.
The examples below use increasing cylinder numbers as the initial direction. The request queue is treated as a fixed batch so that the four algorithms can be compared consistently.
1. SCAN disk scheduling algorithm
SCAN is also called the elevator algorithm. The head moves in one direction, servicing requests as it reaches them. It continues to the physical end of the disk, then reverses direction and services requests on the way back.
How SCAN works
- Choose the initial direction.
- Service requests encountered in that direction.
- Continue to the physical end of the cylinder range, even if there is no request at that exact boundary.
- Reverse direction and service the remaining requests.
Advantage: The head follows an orderly sweep instead of repeatedly jumping between distant requests.
Limitation: It can travel to a disk boundary even when the last pending request is well before that boundary. Waiting time also depends on where a request enters the sweep.
2. C-SCAN disk scheduling algorithm
C-SCAN means Circular SCAN. Like SCAN, it services requests while moving in one direction. After reaching the physical end, however, the head returns to the opposite end without servicing requests during that return. It then resumes servicing in the original direction.
How C-SCAN works
- Move in the chosen direction and service requests along the way.
- Continue to the physical boundary of the disk.
- Return to the opposite boundary without servicing requests on the return trip.
- Continue in the original direction.
Advantage: Because requests are serviced in the same direction on each sweep, C-SCAN tends to provide more uniform waiting times than SCAN under comparable workloads.
Limitation: The wraparound adds head movement, even though no request is serviced during that part of the trip. More uniform waiting time does not mean the algorithm always produces the least total movement.
3. LOOK disk scheduling algorithm
LOOK is similar to SCAN, but it does not automatically travel to the physical end of the disk. The head checks for pending requests in its current direction and reverses when it reaches the last request in that direction.
How LOOK works
- Move in the chosen direction and service requests encountered.
- Stop at the furthest pending request in that direction.
- Reverse direction and service the remaining requests.
Advantage: LOOK avoids unnecessary travel to a physical boundary when no request is waiting beyond the last request.
Limitation: Its waiting-time pattern is not as uniform as a circular sweep in every workload. The actual result depends on request locations and arrival times.
4. C-LOOK disk scheduling algorithm
C-LOOK, or Circular LOOK, combines the one-direction servicing pattern of C-SCAN with the boundary-saving idea of LOOK. The head services requests in one direction only until it reaches the last pending request. It then jumps to the first pending request at the opposite end and continues in the same direction.
How C-LOOK works
- Move in the chosen direction and service requests in order.
- Stop at the furthest pending request in that direction, rather than travelling to the physical disk boundary.
- Jump to the lowest (or highest, if moving in the opposite direction) pending request.
- Continue servicing in the original direction.
Advantage: C-LOOK avoids travelling to unused physical boundaries while retaining a circular, one-direction service pattern.
Limitation: The jump between the last request on one side and the first request on the other can still be long. It should not be described as automatically faster than every other algorithm.
SCAN vs C-SCAN vs LOOK vs C-LOOK
| Algorithm | Service direction | Where does it turn or wrap? | Main characteristic |
|---|---|---|---|
| SCAN | Both directions | At the physical disk boundary | Back-and-forth sweep |
| C-SCAN | One direction | At the physical boundary, then wraps to the opposite boundary | Tends to make waiting times more uniform |
| LOOK | Both directions | At the last pending request in the current direction | Avoids unused travel to disk edges |
| C-LOOK | One direction | Jumps between the last request on one side and the first on the other | Circular service without travelling to unused disk edges |
Worked example: calculate total head movement
Consider this common type of exam question:
- Cylinder range: 0 to 199 (200 cylinders)
- Initial head position: 53
- Request queue: 98, 183, 37, 122, 14, 124, 65, 67
- Initial direction: Towards higher-numbered cylinders
First, arrange the requests on either side of the starting position:
- Higher than 53: 65, 67, 98, 122, 124, 183
- Lower than 53: 14, 37
LOOK head movement
LOOK turns at the last request in the current direction, which is 183. It then services the lower requests in descending order.
Path: 53 → 65 → 67 → 98 → 122 → 124 → 183 → 37 → 14
Total: (65 − 53) + (67 − 65) + (98 − 67) + (122 − 98) + (124 − 122) + (183 − 124) + (183 − 37) + (37 − 14) = 299 cylinders.
SCAN head movement
SCAN continues to the highest physical cylinder, 199, before reversing.
Path: 53 → 65 → 67 → 98 → 122 → 124 → 183 → 199 → 37 → 14
Total: 12 + 2 + 31 + 24 + 2 + 59 + 16 + 162 + 23 = 331 cylinders.
C-LOOK head movement
C-LOOK stops at the last request in the increasing direction (183), jumps to the lowest pending request (14), and continues upwards.
Path: 53 → 65 → 67 → 98 → 122 → 124 → 183 → 14 → 37
Total: 12 + 2 + 31 + 24 + 2 + 59 + 169 + 23 = 322 cylinders.
C-SCAN head movement
C-SCAN reaches cylinder 199, wraps to cylinder 0 without servicing requests during the return, and then services the remaining requests in increasing order.
Path: 53 → 65 → 67 → 98 → 122 → 124 → 183 → 199 → 0 → 14 → 37
Total: 12 + 2 + 31 + 24 + 2 + 59 + 16 + 199 + 14 + 23 = 382 cylinders.
Important calculation note: The C-SCAN total above counts the wraparound from cylinder 199 to cylinder 0 as movement. Some worked solutions state a different convention or omit that return distance. In an exam, show the path and state clearly whether the wraparound is included. Use the same convention throughout the comparison.
Which disk scheduling algorithm is best?
There is no single algorithm that is best for every request pattern. For a fixed queue like the example above, LOOK has the lowest calculated movement among these four. That result does not prove LOOK will always be fastest: a different queue, starting direction, arrival pattern, or hardware implementation can change the outcome.
- Choose SCAN when you need the classic back-and-forth sweep model.
- Choose C-SCAN in theoretical comparisons when a more uniform waiting-time pattern is the priority.
- Choose LOOK when avoiding unnecessary travel to unused disk boundaries matters.
- Choose C-LOOK when you want circular, one-direction servicing without travelling to the physical boundaries.
For a finite queue, each of these methods services the requests in that queue. Do not treat that as a universal guarantee against starvation under every possible continuous-arrival workload; fairness depends on the scheduling policy and how new requests are admitted.
Are these algorithms used with modern SSDs?
These four algorithms are traditionally taught using magnetic HDDs, where mechanical head movement makes seek distance important. SSDs and NVMe drives have no moving read/write head, so the same mechanical-seek model does not describe their performance in the same way.
Modern operating systems also use other block I/O scheduling policies. For example, the current Linux kernel documentation describes schedulers such as mq-deadline, bfq, kyber, and none. The available choices depend on the kernel, device, and configuration. The classic SCAN-family algorithms remain useful for understanding operating-system scheduling concepts and solving academic problems, but do not assume that a modern SSD literally uses one of these four textbook algorithms.
Frequently asked questions
What is the main difference between SCAN and LOOK?
SCAN travels to the physical end of the disk before reversing. LOOK reverses at the last pending request in the current direction, so it can avoid movement when no request is waiting near the boundary.
What is the difference between C-SCAN and C-LOOK?
C-SCAN travels to the physical boundary and wraps to the opposite boundary. C-LOOK wraps from the last pending request in one direction to the first pending request on the other side, avoiding unused travel to the physical edges.
Does C-SCAN always have less head movement than SCAN?
No. C-SCAN is designed to make waiting times more uniform, not to guarantee the smallest total movement. Its wraparound can add substantial distance.
Do SCAN and LOOK prevent starvation?
For a fixed, finite queue, the pending requests are serviced as the head sweeps through the relevant cylinders. With requests arriving continuously, waiting time and fairness depend on the arrival pattern and implementation, so an absolute starvation guarantee should not be assumed.
Are SCAN, C-SCAN, LOOK and C-LOOK suitable for SSDs?
They are primarily mechanical HDD scheduling models. SSDs have no moving head, and modern operating systems use device-appropriate I/O scheduling policies rather than relying directly on these textbook seek algorithms.
Conclusion
Remember the key distinction: SCAN and C-SCAN travel to physical disk boundaries, while LOOK and C-LOOK stop at pending requests. SCAN and LOOK reverse direction; C-SCAN and C-LOOK wrap around and continue in the same direction. Once you know the initial direction and whether boundary or wraparound movement is counted, you can trace the path and calculate the total movement systematically.
Further reading
- INFLIBNET: Disk Scheduling Algorithm — an operating-systems learning chapter covering disk scheduling concepts.
- Linux kernel documentation: Switching I/O schedulers — current documentation for Linux block-device scheduler choices.
- What are Wait-Die and Wound-Wait? — another operating-systems topic on RochakSite.





