0
0
Operating Systemsknowledge~3 mins

Why C-SCAN (circular SCAN) in Operating Systems? - Purpose & Use Cases

Choose your learning style9 modes available
The Big Idea

What if your computer could read data faster just by changing how the disk arm moves?

The Scenario

Imagine you have a disk drive with many requests for reading data scattered all over its surface. If you try to handle these requests one by one in the order they arrive, the disk arm moves back and forth randomly, wasting time and energy.

The Problem

Manually moving the disk arm without a clear plan causes a lot of wasted movement. This makes the system slow and inefficient because the disk head jumps all over the place, increasing the waiting time for each request.

The Solution

C-SCAN organizes the disk requests in a circular way. The disk arm moves in one direction servicing requests until it reaches the end, then quickly returns to the start without servicing requests on the way back. This keeps the movement smooth and predictable, reducing wait times.

Before vs After
Before
service requests as they come, moving disk arm randomly
After
move disk arm in one direction, then jump back to start (C-SCAN)
What It Enables

C-SCAN enables faster and fairer disk access by reducing unnecessary arm movement and ensuring all requests get timely service.

Real Life Example

Think of a librarian who collects books from shelves in order from left to right, then quickly returns to the left without picking books on the way back, making the process faster and more organized.

Key Takeaways

C-SCAN reduces disk arm movement by scanning in one direction only.

It improves efficiency and fairness in servicing disk requests.

This method prevents long waiting times caused by random arm movement.