- Home
- Engineering
- Computer
- Operating Systems
- Disk Scheduling Calculator (FCFS, SSTF, SCAN, LOOK)
Disk Scheduling Calculator (FCFS, SSTF, SCAN, LOOK)
Order of service and total head movement for FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK.
Practice questions
Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.
Requests: 98, 183, 37, 122, 14, 124, 65, 67. Head at 53, disk 0 to 199. Find the total head movement with SSTF.
Same queue with FCFS. Find the total head movement.
Same queue with SCAN, the head moving towards 0.
Same queue with C-LOOK, the head moving towards higher cylinders.
Worked example
Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.
Question: Requests: 98, 183, 37, 122, 14, 124, 65, 67. Head at 53, disk 0 to 199. Find the total head movement with SSTF.
- Write the given values in SI units
- Head movement for each move
- Write the given values in SI units
Towards higher cylinders SSTF (shortest seek time first) = 98 183 37 122 14 124 65 67 head = 53 max = 199 - Head movement for each move
53 → 65 = 12 65 → 67 = 2 67 → 37 = 30 37 → 14 = 23 14 → 98 = 84 98 → 122 = 24 122 → 124 = 2 124 → 183 = 59 Total = 236 cylinders
Terms used on this page
New to a word in the question or the solution? Here it is in simple language.
- FCFS, SJF, SRTF and Round Robin
- FCFS runs jobs in order of arrival. SJF picks the shortest job. SRTF is SJF that can interrupt. Round Robin gives each job a fixed time slice in turn.
Symbols in this solver
What each box asks for, and its unit.
| Symbol | What it means | SI unit |
|---|---|---|
| Request queue (cylinder numbers) | text | |
| head | Starting head position | (no unit) |
| max | Last cylinder number (disk size − 1) | (no unit) |
Formula & concept
Order in which the disk head serves a queue of cylinder requests and the total head movement, for six algorithms.
Key idea: SSTF usually gives a small total but can starve far-away requests. SCAN and LOOK sweep like a lift, so every request is served within one pass.
How to use this calculator
- Type the known values from your question and pick the unit for each one.
- Press Solve step by step.
- Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
- Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
- Stuck on a word? The terms section explains it in simple language.