0
0
Operating Systemsknowledge~20 mins

SSTF (Shortest Seek Time First) in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
SSTF Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding SSTF Disk Scheduling

Which of the following best describes the main goal of the SSTF (Shortest Seek Time First) disk scheduling algorithm?

ATo select the request closest to the current head position to minimize seek time.
BTo process requests in the order they arrive without reordering.
CTo always move the disk head in one direction until the end before reversing.
DTo prioritize requests based on their arrival time and size.
Attempts:
2 left
💡 Hint

Think about how SSTF tries to reduce the movement of the disk head.

📋 Factual
intermediate
2:00remaining
SSTF Disk Scheduling Behavior

Given the current head position at track 50 and pending requests at tracks 45, 70, 55, and 40, which request will SSTF service next?

ATrack 70
BTrack 40
CTrack 55
DTrack 45
Attempts:
2 left
💡 Hint

Calculate the distance from the current head position to each request.

🔍 Analysis
advanced
2:00remaining
SSTF Starvation Problem

Why can the SSTF disk scheduling algorithm cause starvation for some requests?

ABecause SSTF always moves the head in one direction, causing requests in the opposite direction to wait.
BBecause SSTF processes requests strictly in arrival order, ignoring seek time.
CBecause requests far from the current head position may be delayed indefinitely if closer requests keep arriving.
DBecause SSTF prioritizes requests based on their size rather than position.
Attempts:
2 left
💡 Hint

Consider what happens if new requests keep appearing near the current head position.

Comparison
advanced
2:00remaining
Comparing SSTF and SCAN Algorithms

Which statement correctly compares SSTF and SCAN disk scheduling algorithms?

ABoth SSTF and SCAN always service requests in the order they arrive.
BSSTF selects the closest request regardless of direction, while SCAN moves the head in one direction servicing all requests until the end before reversing.
CSSTF moves the head in one direction only, while SCAN selects the closest request at each step.
DSCAN causes starvation, but SSTF guarantees fair servicing of all requests.
Attempts:
2 left
💡 Hint

Think about the movement pattern of the disk head in both algorithms.

Reasoning
expert
3:00remaining
Calculating Total Seek Time with SSTF

Given the initial head position at track 100 and pending requests at tracks 120, 90, 130, 70, and 110, what is the total seek time (sum of all head movements) if SSTF is used to service all requests?

A90 tracks
B80 tracks
C100 tracks
D110 tracks
Attempts:
2 left
💡 Hint

Calculate the distance to the closest request at each step and sum all movements.