SSTF stands for Shortest Seek Time First. It is a disk scheduling algorithm that selects the disk I/O request closest to the current head position to minimize seek time.
Click to reveal answer
beginner
How does SSTF decide which disk request to serve next?
SSTF chooses the request that requires the least movement of the disk arm from its current position, reducing the seek time for each operation.
Click to reveal answer
intermediate
What is a potential drawback of the SSTF algorithm?
SSTF can cause starvation, where some requests far from the current head position may wait a long time if closer requests keep arriving.
Click to reveal answer
intermediate
Compare SSTF with FCFS (First-Come, First-Served) in disk scheduling.
SSTF usually reduces average seek time by choosing the closest request next, while FCFS serves requests in arrival order without considering distance, which can lead to longer seek times.
Click to reveal answer
advanced
In what scenario might SSTF perform poorly despite its goal to minimize seek time?
If requests are clustered far apart, SSTF might keep switching between nearby requests and neglect others, causing some requests to wait too long, leading to starvation.
Click to reveal answer
What is the main goal of the SSTF disk scheduling algorithm?
AServe requests from the outer edge to the inner edge
BServe requests in the order they arrive
CMinimize the seek time by selecting the closest request
DServe requests randomly
✗ Incorrect
SSTF selects the disk request closest to the current head position to reduce seek time.
Which problem can SSTF cause when handling disk requests?
AStarvation of some requests
BIncreased total seek time always
CIgnoring the closest requests
DServing requests in random order
✗ Incorrect
SSTF can cause starvation because requests far from the current head position may wait too long.
How does SSTF differ from FCFS in disk scheduling?
ABoth serve requests in the same order
BSSTF serves the closest request; FCFS serves in arrival order
CSSTF serves requests randomly; FCFS serves closest first
DFCFS minimizes seek time; SSTF does not
✗ Incorrect
SSTF picks the closest request to minimize seek time, while FCFS serves requests as they arrive.
If the disk head is at position 50, and requests are at 45, 55, and 60, which will SSTF serve next?
ARequest at 50
BRequest at 55
CRequest at 60
DRequest at 45
✗ Incorrect
Requests at 45 and 55 are both 5 units away from 50, so SSTF can choose either. Typically, it picks the closest; if equal, either can be chosen.
Which of these is NOT a characteristic of SSTF?
AAlways serves requests in arrival order
BMinimizes seek time
CCan cause starvation
DSelects the nearest request to current head
✗ Incorrect
SSTF does not serve requests in arrival order; it serves the closest request next.
Explain how the SSTF disk scheduling algorithm works and one advantage and one disadvantage of using it.
Think about how the disk arm moves and what happens to far away requests.
You got /3 concepts.
Compare SSTF with FCFS disk scheduling in terms of seek time and fairness.
Consider both efficiency and how requests are treated over time.
You got /4 concepts.
Practice
(1/5)
1. What does SSTF (Shortest Seek Time First) disk scheduling algorithm prioritize?
easy
A. The request closest to the current head position
B. The request that arrived first
C. The request farthest from the current head position
D. Requests in a fixed circular order
Solution
Step 1: Understand SSTF purpose
SSTF aims to reduce the seek time by choosing the disk request nearest to the current head position.
Step 2: Compare options with SSTF behavior
Only the request closest to the current head position matches this behavior; others describe different algorithms.
Final Answer:
The request closest to the current head position -> Option A
Quick Check:
SSTF = closest request [OK]
Hint: Pick the request nearest to the head position [OK]
Common Mistakes:
Confusing SSTF with FCFS (First Come First Serve)
Thinking SSTF picks requests in arrival order
Assuming SSTF picks the farthest request
2. Which of the following is the correct way to describe SSTF in disk scheduling?
easy
A. It processes requests in the order they arrive.
B. It selects the request with the longest waiting time first.
C. It selects the request closest to the current head position.
D. It moves the head in one direction servicing all requests.
Solution
Step 1: Review SSTF definition
SSTF selects the disk request closest to the current head position to minimize seek time.
Step 2: Match options with SSTF behavior
The option "It selects the request closest to the current head position." correctly describes SSTF. Other options describe different algorithms like FCFS or SCAN.
Final Answer:
It selects the request closest to the current head position. -> Option C
Quick Check:
SSTF = closest request selection [OK]
Hint: Remember SSTF picks nearest request, not oldest [OK]
Common Mistakes:
Mixing SSTF with FCFS or SCAN algorithms
Assuming SSTF picks requests by waiting time
Confusing direction-based scheduling with SSTF
3. Given the disk head is at position 50 and requests are at positions [45, 70, 10, 55], which request will SSTF service first?
medium
A. 45
B. 70
C. 10
D. 55
Solution
Step 1: Calculate distances from head position 50
Distances: 45 (5), 70 (20), 10 (40), 55 (5)
Step 2: Identify closest request
Requests at 45 and 55 are both 5 units away. SSTF can pick either, but usually picks the first closest found, here 45.