🎓 BookMCQ
← Back to 10. Mass Storage Structure

📝 Selection of a disk scheduling algorithm (22 MCQs)

Choosing a Policy for Pending Disk Requests

Disk scheduling algorithm selection involves choosing an appropriate method for ordering storage requests according to workload requirements and device characteristics. Common policies include FCFS, SSTF, SCAN, C-SCAN, and LOOK. The operating system or storage subsystem evaluates factors such as average seek time, throughput, waiting-time fairness, starvation risk, and the distribution of pending requests.

Why One Scheduling Policy Cannot Suit Every Workload

Different workloads generate different request patterns. Interactive systems value predictable response times, while database servers may prioritise throughput and efficient queue processing. Mechanical disks incur significant head movement, whereas SSDs have no moving actuator and benefit from different optimisation methods. An algorithm that improves one performance measure may increase another, making workload characteristics essential to selection.

Evaluating Seek Time, Fairness and Request Ordering

The scheduler examines the pending request queue and applies its selection policy. FCFS preserves arrival order, SSTF selects the nearest cylinder, and SCAN-family algorithms organise requests into directional sweeps. Measurements may include total head movement, average waiting time, throughput, and response-time variation. Modern storage stacks may also consider queue depth, device-level parallelism, and command scheduling.

Comparing Policies for a Database Workload

Suppose a mechanical disk receives a large batch of requests clustered around cylinders 100 through 150, with occasional requests near cylinder 900. SSTF may reduce movement within the cluster but postpone distant requests. LOOK provides directional service and avoids unnecessary boundary travel. FCFS preserves request order but may generate greater head movement depending on arrival sequence.

Performance, Starvation and Device Characteristics

FCFS offers predictable ordering but can produce high seek costs. SSTF may improve average movement but risks starvation, whereas SCAN and LOOK provide more systematic service. C-SCAN aims for more uniform waiting distribution. Selection must also consider rotational latency, workload fairness, and hardware. Traditional cylinder-based algorithms offer limited advantages on SSDs because mechanical seek movement is absent.

Common Errors in Comparing Disk Policies

'The algorithm with minimum movement always gives the best response time' is incorrect because queueing, rotational latency, and fairness also matter. 'SSTF cannot cause starvation' is incorrect because distant requests may wait indefinitely. 'SCAN and LOOK always travel identical distances' is incorrect because LOOK avoids unused disk-boundary travel.

Exam Focus: Algorithm Comparison and Workload Evaluation

Calculate total head movement for each supplied scheduling algorithm using identical initial conditions and request queues. Compare service order, fairness, and starvation risk rather than ranking policies by seek distance alone. Identify when directional sweeps are suitable and explain why HDD-oriented scheduling behaves differently on SSDs and modern parallel storage devices.

Key Terms of Disk Scheduling Selection

  • Throughput - Requests completed per time unit.
  • Response time - Delay before completion.
  • Seek time - Head-positioning duration.
  • Fairness - Balanced request service.
  • Starvation - Indefinite request postponement.
  • Workload - Pattern of storage requests.
4
Easy
11
Medium
7
Hard

📝 All Selection of a disk scheduling algorithm MCQs

Q1. What is the definition of seek time in a magnetic disk?

A.Time for the head to move to the target cylinder ✅
B.Time for the disk to rotate to the target sector
C.Time to transfer data between disk and memory
D.Time for the controller to acknowledge the request
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The correct answer is A because seek time measures the interval needed for the actuator arm to position the read/write heads over the correct cylinder. Options B, C, and D describe rotational latency, data transfer time, and controller response, which are distinct components of overall access time. Understanding this definition helps students recognize why reducing head movement can improve performance in real disk operations.

Q2. What does rotational latency represent?

A.Time for the head to move to the target cylinder
B.Time for the disk to rotate until the desired sector is under the head ✅
C.Time to copy data from disk to memory
D.Time the OS spends queuing the request
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The correct answer is B because rotational latency is the waiting period while the platter spins until the target sector arrives at the read/write head. Option A describes seek time, while C and D refer to data transfer and OS queuing, respectively. Knowing rotational latency is essential for assessing how much delay is caused by disk spin speed in practical storage scenarios.

Q3. Why can FCFS scheduling lead to high average seek time?

A.It services requests strictly in arrival order ✅
B.It always chooses the nearest request
C.It groups requests by cylinder
D.It assigns priorities based on process ID
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The correct answer is A because First‑Come‑First‑Served ignores the physical location of pending requests, so the disk arm may travel long distances between unrelated cylinders. Options B, C, and D describe alternative strategies (nearest‑neighbor, cylinder grouping, and priority scheduling) that can reduce movement. Recognizing this limitation explains why FCFS often performs poorly on real disks with scattered I/O patterns.

Q4. How does SSTF scheduling generally affect average seek distance compared to FCFS?

A.It increases the average distance
B.It decreases the average distance ✅
C.It leaves the distance unchanged
D.It makes the distance unpredictable
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The correct answer is B because Shortest‑Seek‑Time‑First selects the request closest to the current head position, thereby typically shortening the travel path and lowering the average seek distance. Option A is opposite, while C and D ignore the systematic reduction achieved by SSTF. This concept shows why many systems adopt SSTF to improve disk efficiency when fairness is not the primary concern.

Q5. Given a current head at cylinder 50 and pending requests at 10, 22, 40, 58, and 60, which algorithm yields the smallest total head movement?

A.FCFS
B.SSTF ✅
C.SCAN
D.C‑SCAN
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The correct answer is B because SSTF always moves to the nearest pending request, resulting in movements of 12 (50→58), 2 (58→60), 20 (60→40), 18 (40→22), and 12 (22→10) for a total of 64 cylinders, which is less than the totals produced by FCFS, SCAN, or C‑SCAN. Options A, C, and D follow different ordering rules that cause extra travel. This illustrates how selecting SSTF can minimize mechanical work in a typical workload.

Q6. In a real‑time system where each I/O request must be served within a bounded time, which scheduling algorithm provides the most predictable wait times?

A.FCFS
B.SSTF
C.SCAN ✅
D.C‑SCAN
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because SCAN (also called the elevator algorithm) services requests in one direction before reversing, giving each request a maximum wait time that depends on the total sweep length rather than on request proximity. SSTF (B) can cause starvation, while FCFS (A) may incur long waits due to scattered requests, and C‑SCAN (D) adds the extra jump overhead. Predictable latency is crucial for real‑time constraints, making SCAN the preferred choice.

Q7. A disk starts at cylinder 35 with pending requests at 10, 20, 30, 40, and 90, and the maximum cylinder number is 100. Which total head movement corresponds to the C‑SCAN algorithm?

A.135
B.95 ✅
C.150
D.120
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The correct answer is B because C‑SCAN moves upward, servicing 40 and 90, then continues to the end (100) and jumps to 0 without servicing, finally handling 10, 20, and 30. The distances are 5 (35→40), 50 (40→90), 10 (90→100), then 10 (0→10), 10 (10→20), and 10 (20→30), totaling 95 cylinders. Options A, C, and D represent other possible totals that do not follow the C‑SCAN pattern. This calculation shows how C‑SCAN can reduce overall movement in certain request distributions.

Q8. What is the primary difference between the SCAN and C‑SCAN disk‑scheduling algorithms?

A.SCAN moves only in one direction
B.C‑SCAN services requests while moving
C.SCAN reverses direction at the end of the disk ✅
D.C‑SCAN reverses direction at the end of the disk
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because SCAN (the elevator algorithm) moves toward one end, services requests, then reverses direction, whereas C‑SCAN continues in the same direction, jumps to the opposite end, and resumes serving, providing more uniform wait times. Options A and B mischaracterize the movement, and D repeats the reversal behavior of SCAN. Understanding this distinction helps students choose the algorithm that best matches workload fairness and performance goals.

Q9. When the disk request queue becomes long, which algorithm is typically preferred to maintain performance?

A.FCFS
B.SSTF
C.SCAN ✅
D.Random selection
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because a long queue benefits from SCAN's systematic sweep, which reduces seek time by ordering requests along the cylinder axis and prevents extreme head movements. FCFS (A) ignores location, SSTF (B) can cause starvation with many requests, and random selection (D) offers no performance advantage. Recognizing the impact of queue length guides system designers toward algorithms that balance efficiency and fairness under heavy load.

Q10. A mixed workload contains many small reads and occasional large writes. Which algorithm is most likely to minimize overall throughput loss?

A.FCFS
B.SSTF
C.SCAN
D.LOOK ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The correct answer is D because LOOK (a variant of SCAN) only travels as far as the furthest request in each direction, avoiding unnecessary trips to the disk extremes, which is beneficial when write operations are large and infrequent. FCFS (A) can cause excessive head movement, SSTF (B) may starve large writes, and SCAN (C) may travel further than needed. This scenario demonstrates how LOOK can improve throughput for mixed I/O patterns.

Q11. Requests arrive at times 0 (cylinder 55), 2 (cylinder 58), and 4 (cylinder 18) with the head initially at 50. Which algorithm gives the lowest average response time?

A.FCFS
B.SSTF ✅
C.SCAN
D.C‑SCAN
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The correct answer is B because SSTF immediately serves the nearest request (55), then the next nearest (58), and finally the farthest (18), resulting in response times of 5, 8, and 40 units respectively, averaging 17.67. FCFS (A) would wait for the later arrivals, increasing the average, while SCAN (C) and C‑SCAN (D) introduce extra travel due to direction changes. This illustrates SSTF’s advantage in minimizing response time for tightly clustered requests.

Q12. Why can the SSTF algorithm cause starvation for some requests?

A.It always selects the nearest request
B.It ignores requests that are far from the current head position ✅
C.It rotates the head continuously
D.It assigns priority based on process ID
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The correct answer is B because SSTF continually chooses the closest pending request, which can indefinitely postpone requests located far from the current head position if nearer requests keep arriving, leading to starvation. Option A describes the selection rule but does not explain the effect, C is unrelated to SSTF, and D introduces an irrelevant factor. Recognizing this risk helps students understand why fairness mechanisms may be needed alongside SSTF.

Q13. What trade‑off exists between fairness and efficiency in disk‑scheduling algorithms?

A.Fairness always reduces efficiency
B.Efficiency always reduces fairness
C.A balance can be achieved between the two ✅
D.There is no trade‑off
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The correct answer is C because designers can select algorithms that provide reasonable fairness while still improving efficiency, such as LOOK or SCAN, which limit extreme wait times yet reduce head movement. Options A and B present absolute statements that are inaccurate, and D denies the well‑known relationship. Grasping this trade‑off enables students to evaluate scheduling choices for different system priorities.

Q14. For a sequence of requests at cylinders 55, 58, 18, 90, and 150 starting from head 50, which algorithm yields the lowest average seek time?

A.FCFS ✅
B.SSTF
C.SCAN
D.C‑SCAN
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The correct answer is A because FCFS results in total head movement of 180 cylinders (average 36), which is less than the totals produced by SSTF (244), SCAN (232), and C‑SCAN (which would be even higher due to extra wrap‑around). Options B, C, and D all incur more movement because they reorder requests in ways that increase travel distance. This example shows that, despite its simplicity, FCFS can sometimes be the most efficient for particular request patterns.

Q15. Which scheduling approach is most appropriate for solid‑state drives (SSDs) compared to traditional hard disks?

A.FCFS
B.SSTF
C.SCAN
D.No scheduling needed for SSDs ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: The correct answer is D because SSDs have negligible seek time and no rotational latency, so the order of requests does not affect access time significantly; therefore, complex scheduling provides little benefit. FCFS (A), SSTF (B), and SCAN (C) are designed to minimize mechanical movement, a concern that does not apply to SSDs. Understanding hardware characteristics guides students to apply or omit scheduling algorithms appropriately.

Q16. Why might a modern operating system combine multiple disk‑scheduling algorithms?

A.To adapt to changing workload characteristics ✅
B.To simplify the kernel code
C.Because hardware requires it
D.To avoid patent issues
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The correct answer is A because combining algorithms allows the OS to select the most suitable strategy for the current mix of I/O patterns, such as using SSTF for bursty reads and SCAN for uniform workloads, thereby optimizing performance dynamically. Options B, C, and D are not primary motivations; code simplicity and hardware constraints are addressed differently, and patent concerns are irrelevant. This rationale explains the flexibility of contemporary schedulers.

Q17. In a system with several independent I/O queues, which algorithm applied per queue reduces variance in overall throughput the most?

A.FCFS per queue
B.SSTF per queue
C.C‑SCAN per queue ✅
D.Random selection per queue
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The correct answer is C because C‑SCAN provides a uniform wait time for each request by always moving in one direction and wrapping around, which smooths out service intervals across queues, thereby reducing throughput variance. SSTF (B) can cause bursty service, FCFS (A) may lead to irregular head movement, and random selection (D) offers no predictability. Recognizing this effect helps students design multi‑queue systems with stable performance.

Q18. When minimizing rotational latency is critical, which algorithm is best suited?

A.FCFS
B.SSTF
C.LOOK ✅
D.C‑LOOK
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because LOOK (a refined SCAN) services requests only up to the furthest needed cylinder in each direction, avoiding unnecessary travel to disk ends, which reduces the time the disk must rotate to reach the next sector. SSTF (B) may still cause large jumps, FCFS (A) ignores location entirely, and C‑LOOK (D) behaves similarly to LOOK but adds a wrap‑around that can increase latency. This choice highlights how algorithm design impacts rotational delays.

Q19. How do seek time and rotational latency combine to affect overall disk access time?

A.They are added together ✅
B.They are multiplied together
C.They are independent of each other
D.They are inversely proportional
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The correct answer is A because total access time is the sum of the mechanical seek time required to position the heads and the rotational latency needed for the desired sector to arrive under the heads. Multiplication (B) would overstate the effect, independence (C) ignores their sequential nature, and inverse proportionality (D) is incorrect. Understanding this additive relationship helps students evaluate how scheduling can reduce total delay.

Q20. Which factor most influences the decision to use SCAN rather than C‑SCAN?

A.Number of pending requests
B.Total cylinder range of the disk
C.Requirement for uniform wait times ✅
D.Disk rotation speed
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because C‑SCAN provides more uniform wait times by always servicing requests in one direction and then jumping, which is essential for applications needing predictable latency. SCAN may be chosen when uniformity is less critical. Options A and B affect overall movement but not the uniformity characteristic, while D influences latency magnitude but not algorithm choice. Recognizing this factor guides algorithm selection for quality‑of‑service requirements.

Q21. Given requests arriving at time 0 (cylinder 20), time 1 (cylinder 80), and time 2 (cylinder 30) with the head initially at 50, which algorithm minimizes the maximum response time?

A.FCFS
B.SSTF
C.SCAN
D.C‑SCAN ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The correct answer is D because C‑SCAN moves upward, servicing 80 first (30 units), then proceeds to the end (100) and jumps to 0, finally handling 20 (20 units) and 30 (10 units). The longest response time is 30 units, which is lower than the maximum times produced by FCFS, SSTF, or SCAN under the same arrival pattern. This demonstrates C‑SCAN’s ability to bound worst‑case latency in certain workloads.

Q22. In a hybrid storage system with both HDD and SSD, which combination of scheduling algorithms yields the best overall throughput?

A.FCFS for HDD and FCFS for SSD
B.SSTF for HDD and FCFS for SSD
C.SCAN for HDD and LOOK for SSD
D.C‑SCAN for HDD and C‑SCAN for SSD ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: The correct answer is D because C‑SCAN applied to the HDD provides uniform service intervals and reduces seek overhead, while C‑SCAN on the SSD, despite its negligible seek cost, ensures orderly processing that can coordinate with the HDD queue, maximizing overall system throughput. Options A, B, and C either ignore HDD optimization or use less suitable algorithms for one of the devices. This answer reflects how coordinated scheduling across heterogeneous media can enhance performance.

🔗 Related Topics (MCQs)