0
0
Operating Systemsknowledge~5 mins

SCAN (elevator algorithm) in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the SCAN (elevator) algorithm in operating systems?
The SCAN algorithm is a disk scheduling method where the disk arm moves in one direction servicing requests until it reaches the end, then reverses direction and services requests on the way back, similar to an elevator moving up and down.
Click to reveal answer
beginner
How does the SCAN algorithm differ from the FCFS (First-Come, First-Served) disk scheduling?
Unlike FCFS which services requests in the order they arrive, SCAN moves the disk arm in one direction servicing all requests along the way, reducing the total seek time and avoiding long delays for requests far from the current head position.
Click to reveal answer
beginner
Why is the SCAN algorithm also called the elevator algorithm?
Because it works like an elevator that moves in one direction servicing all floors (requests) on the way, then reverses direction to service requests in the opposite direction, ensuring fair and efficient servicing.
Click to reveal answer
intermediate
What is the main advantage of the SCAN algorithm?
It reduces the average seek time by servicing requests in a sweeping motion, preventing starvation and providing a more uniform wait time compared to simpler algorithms.
Click to reveal answer
beginner
What happens when the disk arm reaches the end of the disk in the SCAN algorithm?
The disk arm reverses direction and starts servicing requests in the opposite direction, continuing this back-and-forth movement like an elevator.
Click to reveal answer
What does the SCAN algorithm do when it reaches the last request in one direction?
AStops and waits for new requests
BReverses direction and services requests on the way back
CJumps back to the start immediately
DContinues moving in the same direction without servicing
Why is the SCAN algorithm called the elevator algorithm?
ABecause it moves the disk arm back and forth like an elevator
BBecause it uses elevators to move disks
CBecause it only works in buildings
DBecause it randomly selects requests
Which of these is a key benefit of the SCAN algorithm over FCFS?
AIt always services requests in arrival order
BIt services only one request per sweep
CIt ignores requests at the disk edges
DIt reduces average seek time by sweeping through requests
What problem does the SCAN algorithm help to avoid?
ADisk arm starvation
BData corruption
CFile system crashes
DPower failure
In SCAN, what determines the direction of the disk arm movement?
AUser input
BRandom choice
CCurrent position and pending requests
DTime of day
Explain how the SCAN (elevator) algorithm works in disk scheduling.
Think about how an elevator moves between floors.
You got /4 concepts.
    Describe the advantages of using the SCAN algorithm compared to simpler methods like FCFS.
    Consider how SCAN organizes request servicing.
    You got /4 concepts.