0
0
Operating Systemsknowledge~20 mins

LOOK and C-LOOK variants in Operating Systems - Practice Problems & Coding Challenges

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

Which of the following best describes how the LOOK disk scheduling algorithm operates?

AThe disk arm moves to the end of the disk in one direction, servicing requests along the way, then reverses direction to service remaining requests.
BThe disk arm moves in one direction servicing requests until it reaches the last request in that direction, then reverses direction without going to the end of the disk.
CThe disk arm moves in a circular manner, always moving in one direction and jumping back to the start after reaching the last request.
DThe disk arm randomly selects the next request to service regardless of its position.
Attempts:
2 left
💡 Hint

Think about how LOOK differs from SCAN by not going all the way to the disk's end.

🧠 Conceptual
intermediate
2:00remaining
Key Difference Between LOOK and C-LOOK

What is the main difference between the LOOK and C-LOOK disk scheduling algorithms?

ALOOK reverses direction after reaching the last request in one direction; C-LOOK jumps back to the first request without reversing direction.
BLOOK always moves to the disk's end; C-LOOK moves only to the last request in the current direction.
CLOOK services requests randomly; C-LOOK services requests in order of arrival.
DLOOK uses a circular queue; C-LOOK uses a linear queue.
Attempts:
2 left
💡 Hint

Consider how the arm moves after reaching the last request in the current direction.

🔍 Analysis
advanced
3:00remaining
Analyzing Disk Arm Movement in C-LOOK

Given the disk requests at tracks [10, 22, 20, 2, 40, 6] and the disk arm starting at track 15 moving towards higher track numbers, what is the order in which C-LOOK services the requests?

A20, 22, 40, 10, 6, 2
B22, 20, 10, 6, 2, 40
C20, 22, 40, 2, 6, 10
D10, 6, 2, 20, 22, 40
Attempts:
2 left
💡 Hint

Remember that C-LOOK moves in one direction and jumps back to the lowest request after reaching the highest.

Comparison
advanced
3:00remaining
Comparing Total Head Movement: LOOK vs C-LOOK

For the request queue [5, 8, 12, 20, 25] and the disk arm starting at track 10 moving towards higher tracks, which algorithm results in less total head movement?

ANeither algorithm is efficient; FCFS would result in less head movement.
BC-LOOK results in less total head movement because it jumps back to the lowest request without reversing.
CBoth LOOK and C-LOOK result in the same total head movement for this request queue.
DLOOK results in less total head movement because it reverses direction after the last request in one direction.
Attempts:
2 left
💡 Hint

Calculate the total distance the arm moves in each algorithm.

Reasoning
expert
4:00remaining
Choosing Between LOOK and C-LOOK for Real-Time Systems

In a real-time system where minimizing the maximum wait time for any disk request is critical, which disk scheduling algorithm is more suitable and why?

AC-LOOK is more suitable because it provides a more uniform wait time by servicing requests in a single direction and jumping back quickly.
BLOOK is more suitable because reversing direction reduces the maximum wait time for requests at the opposite end.
CNeither LOOK nor C-LOOK is suitable; FCFS is better for real-time systems.
DBoth LOOK and C-LOOK are equally suitable as they have similar wait times.
Attempts:
2 left
💡 Hint

Consider how the arm movement pattern affects wait times for requests at different positions.