Bird
0
0
LLDsystem_design~5 mins

Scheduling algorithm (SCAN, LOOK) in LLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the SCAN scheduling algorithm?
SCAN is a disk scheduling algorithm 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, like an elevator.
Click to reveal answer
beginner
How does the LOOK algorithm differ from SCAN?
LOOK is similar to SCAN but the disk arm only goes as far as the last request in each direction before reversing, instead of going to the physical end of the disk.
Click to reveal answer
beginner
Why is SCAN called the elevator algorithm?
Because it moves the disk arm back and forth across the disk like an elevator moving up and down floors, servicing requests in one direction before reversing.
Click to reveal answer
intermediate
What is the main advantage of LOOK over SCAN?
LOOK reduces unnecessary movement by not going to the disk's physical end if there are no requests there, improving efficiency and reducing seek time.
Click to reveal answer
intermediate
In what scenario would SCAN or LOOK scheduling be preferred?
They are preferred when we want to reduce the average seek time and avoid starvation by servicing requests in a fair order, especially in systems with many disk I/O requests.
Click to reveal answer
What does the SCAN algorithm do when it reaches the end of the disk?
ASkips requests at the end and continues forward
BReverses direction and services requests on the way back
CJumps back to the start of the disk immediately
DStops and waits for new requests
How does LOOK improve efficiency compared to SCAN?
ABy moving faster across the disk
BBy skipping requests at the disk edges
CBy servicing requests randomly
DBy only moving as far as the last request in each direction
Which scheduling algorithm is also known as the elevator algorithm?
ASCAN
BLOOK
CFCFS
DSSTF
What is a key benefit of using SCAN or LOOK over FCFS in disk scheduling?
AThey reduce average seek time and avoid starvation
BThey guarantee the shortest seek time for every request
CThey process requests in random order
DThey only service requests at the disk edges
If there are no requests beyond a certain point on the disk, which algorithm avoids unnecessary travel?
ASCAN
BFCFS
CLOOK
DSSTF
Explain how the SCAN scheduling algorithm works and why it is called the elevator algorithm.
Think about how an elevator moves up and down floors.
You got /4 concepts.
    Describe the difference between SCAN and LOOK algorithms and the advantage of LOOK.
    Consider how far the disk arm travels in each algorithm.
    You got /4 concepts.