Experience different disk scheduling algorithms in action.

Simulator

What is Disk Scheduling?

Disk scheduling is how a computer chooses the best order to read or write data on a storage disk. It's like planning a delivery route — it saves time by avoiding back-and-forth movements.

Why is Disk Scheduling Important?

Where is it Used?

Disk scheduling is found in most operating systems and used when multiple tasks need to access storage. It plays a major role in:

How Does It Work? (Simple Analogy)

Imagine you're delivering mail to rooms 3, 7, 2, and 9. Instead of jumping randomly between rooms, you go in order — 2 → 3 → 7 → 9 — saving time. Disk scheduling works in a similar way to avoid unnecessary delays.

Common Disk Scheduling Algorithms

To sum it up — disk scheduling is like an intelligent traffic controller inside your computer, ensuring that data flows quickly, fairly, and efficiently.

Disk Scheduling Algorithms

FCFS (First Come First Serve)

Imagine you are standing in a queue at a grocery store. The cashier serves the customers one by one in the order they arrived. The first person who comes to the queue gets served first, the second person goes next, and so on.

SSTF (Shortest Seek Time First)

Imagine you are standing in the middle of a long hallway with multiple rooms on both sides. Your job is to deliver packages to these rooms, but you can choose the order in which you deliver them. Naturally, you would deliver to the closest room first to minimize walking distance, right?

SCAN (Elevator Algorithm)

Imagine you are standing in a long hallway with multiple rooms on both sides. Your job is to deliver packages to these rooms, but you can only move in one direction at a time. You start at one end, deliver packages to the rooms, and then reverse direction to deliver the remaining packages.

C-SCAN (Circular Elevator Algorithm)

Imagine you are a bus driver following a fixed route. You start picking up passengers from one end of the city and move towards the other end, stopping at all bus stops along the way. Once you reach the last stop, instead of turning back and picking up passengers on the way back, you go straight to the first stop and start over.