πŸŽ“ BookMCQ
← Back to 10. Mass Storage Structure

πŸ“ 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.
2
Easy
4
Medium
2
Hard

πŸ“ All LOOK scheduling in Disk Scheduling MCQs

Q1. What is the primary behavior of the LOOK disk scheduling algorithm?

A.Moves the disk arm to the outermost cylinder regardless of pending requests
B.Scans only as far as the furthest request in each direction before reversing βœ…
C.Always services requests in the order they arrive
D.Jumps directly to the next request without moving the arm
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– 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?

A.Because LOOK skips idle cylinders, reducing unnecessary movement βœ…
B.Because LOOK prioritizes read requests over write
C.Because LOOK uses a random selection of pending requests
D.Because LOOK always starts from the innermost cylinder
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– 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?

A.C-LOOK jumps to the lowest request without servicing intermediate cylinders βœ…
B.C-LOOK continues scanning in the same direction after reaching the highest request
C.C-LOOK reverses direction only after servicing all requests
D.C-LOOK services requests based on their arrival time
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– 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?

A.65, 67, 98, 122, 124, 183, 37, 14 βœ…
B.37, 14, 65, 67, 98, 122, 124, 183
C.98, 122, 124, 183, 65, 67, 37, 14
D.14, 37, 65, 67, 98, 122, 124, 183
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– 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?

A.LOOK 45 cylinders, FCFS 109 cylinders (difference 64) βœ…
B.LOOK 70 cylinders, FCFS 109 cylinders (difference 39)
C.LOOK 45 cylinders, FCFS 95 cylinders (difference 50)
D.LOOK 60 cylinders, FCFS 120 cylinders (difference 60)
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– 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?

A.Standard LOOK serving all requests in head‑movement order
B.Prioritize reads first, then apply LOOK within each class βœ…
C.Apply LOOK but reverse direction after each read
D.Use FCFS for all requests
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– 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?

A.FCFS
B.SCAN
C.C-LOOK
D.SSTF βœ…
πŸ’‘ Difficulty: medium | βœ… Correct: D

πŸ“– 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?

A.Seek time βœ…
B.Rotational latency
C.Transfer time
D.Queueing overhead
πŸ’‘ Difficulty: easy | βœ… Correct: A

πŸ“– 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.

πŸ”— Related Topics (MCQs)