1. Home
  2. Engineering
  3. Computer
  4. Operating Systems
  5. 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.

Operating SystemsEngineeringIntermediateStep-by-step solution

Practice questions

Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.

  1. Requests: 98, 183, 37, 122, 14, 124, 65, 67. Head at 53, disk 0 to 199. Find the total head movement with SSTF.

  2. Same queue with FCFS. Find the total head movement.

  3. Same queue with SCAN, the head moving towards 0.

  4. 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.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Head movement for each move
Answer
Order served53 → 65 → 67 → 37 → 14 → 98 → 122 → 124 → 183
Total head movement (cylinders)total = 236
Average seek per requestaverage = 29.5
Step-by-step solution
  1. 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
  2. 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
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.

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.

SymbolWhat it meansSI unit
Request queue (cylinder numbers)text
headStarting head position(no unit)
maxLast 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.

Total head movement = Σ |next cylinder − current cylinder|

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

  1. Type the known values from your question and pick the unit for each one.
  2. Press Solve step by step.
  3. 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.
  4. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  5. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Disk Scheduling work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula Total head movement = Σ |next cylinder − current cylinder| and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
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.
What if my answer doesn't match my book?
First check that you've picked the right units. Then see which constants your book uses and how many figures it rounds to. You can change the number of figures under Settings in the solver. A small difference in the last digit is usually just rounding.
Can I see how to solve it without seeing the answer?
Yes. Tick Practice mode under the solver. You'll get the plan of steps only, so you can work it out on paper. One click then shows the full solution.
Is the Disk Scheduling free to use?
Yes, it's free with no sign-up. All calculations happen inside your browser and nothing you type is stored.
Which grades is it useful for?
It's made for Engineering (University · B.Tech · B.E. · Diploma · GATE · FE). The working follows the method used in textbooks and exams.