GATE CSE · Operating Systems
Generate diverse GATE-level questions covering disk scheduling algorithms (FCFS, SSTF, SCAN, C-SCAN), seek time calculation, and performance comparison.
Concept summary for GATE CSE 2027 · 15 practice questions available
Disk scheduling algorithms determine the order in which disk I/O requests are serviced to minimize seek time (head movement).
FCFS (First Come First Serve)
SSTF (Shortest Seek Time First)
SCAN (Elevator Algorithm)
C-SCAN (Circular SCAN)
LOOK
C-LOOK
| Algorithm | Starvation | Performance | Notes |
|---|---|---|---|
| FCFS | No | Poor | Fair only |
| SSTF | Yes | Good avg | Not optimal |
| SCAN | No | Good | Unequal wait |
| C-SCAN | No | Better | Uniform wait |
| LOOK | No | Best | Used in practice |
| C-LOOK | No | Best | Used in practice |
Always draw the sequence on a number line and add up absolute differences between consecutive positions.
Example: Head at 50, requests: 95,180,34,119,11,123,62
FCFS: |95−50|+|180−95|+|34−180|+... = sum all moves
SSTF is greedy - always picks nearest, not globally optimal. LOOK/C-LOOK are preferred over SCAN/C-SCAN in practice. For numerical questions: list the service order first, then calculate total movement as sum of absolute differences. C-SCAN jump-back does NOT count as movement in most questions - verify with question.