π LOOK scheduling in Disk Scheduling (8 MCQs)
Directional Disk Scheduling Without Unnecessary Boundary Travel
LOOK is a disk-scheduling algorithm that moves the disk head in one direction, servicing pending requests until no further request remains in that direction. Instead of travelling to the physical end of the disk, it reverses at the last requested cylinder. This modification reduces unnecessary head movement while retaining the systematic directional behaviour of SCAN.
Why LOOK Avoids Empty Portions of a Disk Sweep
SCAN may move to the physical boundary even when the last pending request is much closer. This creates unnecessary movement through cylinders containing no requests. LOOK addresses the problem by examining the pending queue and turning at the final request in the current direction. It maintains directional organisation without requiring a complete sweep to the disk's physical limit.
Directional Request Ordering and Reversal Conditions
The scheduler identifies requests above or below the current head position according to the initial direction. It services requests in ascending or descending cylinder order. When no further pending request exists in the current direction, the head reverses and processes requests on the opposite side. The process continues until the request queue becomes empty.
Servicing Four Requests with a LOOK Sweep
Suppose cylinders range from 0 to 199, the head starts at 50, and requests are located at 82, 140, 170, and 43. Moving upward, LOOK services 82, 140, and 170, then reverses immediately at 170. It returns to 43 without visiting cylinder 199, reducing movement compared with SCAN.
Reduced Seek Distance and Directional Fairness
LOOK often reduces head movement compared with SCAN because it does not visit unused disk boundaries. Directional servicing also helps avoid the repeated local preference associated with SSTF. However, requests arriving just after the head passes their locations may wait for another sweep. The algorithm remains dependent on mechanical head positioning and request distribution.
Correcting Confusions About LOOK and SCAN
'LOOK always visits both physical disk boundaries' is incorrect because it reverses at the last pending request. 'LOOK selects the nearest request regardless of direction' is incorrect because it maintains a directional sweep. 'LOOK guarantees the smallest possible head movement' is incorrect because it does not solve the global minimum-distance scheduling problem.
Exam Focus: Finding the Last Request Before Reversal
Identify the current direction and arrange requests on each side of the head. Service requests in directional order and reverse at the final pending request, not the disk boundary. Calculate total movement for every service segment. Compare LOOK with SCAN and SSTF, paying particular attention to unused boundary travel and differences in waiting-time behaviour.
Key Terms of LOOK Scheduling
- LOOK - Reverses at the last pending request.
- Direction - Current head movement orientation.
- Reversal point - Last request in a sweep.
- Pending request - Unserviced disk operation.
- Seek distance - Cylinder movement required.
- SCAN - Services through physical disk boundaries.
π All LOOK scheduling in Disk Scheduling MCQs
Q1. What is the primary behavior of the LOOK disk scheduling algorithm?
π Explanation: LOOK works by moving the arm only to the outermost pending request in the current direction, then reversing. This avoids unnecessary travel over empty cylinders, unlike algorithms that always go to the disk extreme. Option B describes this correctly; the other options describe unrelated behaviors such as always going to the outer edge, FIFO ordering, or random jumps, which are not characteristics of LOOK.
Q2. Why does LOOK typically result in lower average seek time than SCAN?
π Explanation: LOOK stops at the last request in each direction before reversing, so it does not travel over cylinders that have no pending I/O. This reduces the distance the arm must move, lowering average seek time compared to SCAN, which always goes to the physical disk end. The other choices describe priorities or randomness that are not part of LOOKβs design.
Q3. How does C-LOOK differ from LOOK in handling the return movement?
π Explanation: C-LOOK is a variant that, after reaching the highest pending request, jumps directly to the lowest pending request, bypassing the empty cylinders in between. This differs from standard LOOK, which reverses direction and services requests on the way back. Option A captures this jump behavior; the other options incorrectly describe continued scanning, delayed reversal, or FIFO ordering, none of which match C-LOOKβs operation.
Q4. Given a disk head at cylinder 53 and pending requests at 98, 183, 37, 122, 14, 124, 65, and 67, which order will LOOK service them if the head initially moves toward higher numbers?
π Explanation: First, sort the requests: 14, 37, 65, 67, 98, 122, 124, 183. With the head at 53 moving upward, LOOK services all requests β₯53 in ascending order: 65 β 67 β 98 β 122 β 124 β 183. After reaching the furthest request, it reverses and serves the remaining lower requests in descending order: 37 β 14. Option A reflects this exact sequence; the other options either start with lowβnumber requests or list them in a different order, which does not follow LOOKβs rule.
Q5. A disk head starts at cylinder 50. The pending requests are at 10, 22, 20, 38, 40, and 5. What is the total seek distance for LOOK compared to FCFS?
π Explanation: For FCFS the head moves 50β10 (40), 10β22 (12), 22β20 (2), 20β38 (18), 38β40 (2), 40β5 (35); totalβ―=β―109 cylinders. LOOK sorts the requests and moves toward the nearest end; with headβ―=β―50 moving inward, the order is 40β38β22β20β10β5, giving distances 10+2+16+2+10+5β―=β―45 cylinders. Option A shows both totals and the correct difference; the other options give incorrect distances or differences.
Q6. In a system where reads are latencyβsensitive, the pending I/O requests are reads at cylinders 30 and 90, and writes at 40, 80, 20, and 110. Which scheduling approach best balances overall response time?
π Explanation: Prioritizing reads ensures the latencyβcritical operations are completed quickly, while still using LOOK within each class to minimize head movement. This hybrid approach reduces the wait for reads without sacrificing the efficiency that LOOK provides for writes. Option B captures this strategy; the other options either ignore read priority, add unnecessary reversals, or revert to FCFS, which would increase overall latency.
Q7. If most pending requests lie within 5 cylinders of the current head position, which algorithm would most likely yield the lowest average seek time?
π Explanation: When requests are tightly clustered around the current head, the Shortest Seek Time First (SSTF) algorithm selects the nearest request each time, minimizing movement and thus average seek time. The other algorithms (FCFS, SCAN, C-LOOK) follow predetermined movement patterns that can cause the head to travel farther than necessary when the workload is highly localized. Therefore, option D correctly identifies SSTF as the most efficient in this scenario.
Q8. Which component of disk access time does LOOK aim to reduce?
π Explanation: LOOK minimizes the distance the disk arm must travel by ordering requests based on cylinder location, directly reducing the seek time component of access latency. Rotational latency and transfer time are unaffected by request ordering, and queueing overhead refers to software overhead rather than physical movement. Hence, option A is correct because it identifies the seek time reduction that LOOK targets.