0
0
Operating Systemsknowledge~10 mins

LOOK and C-LOOK variants in Operating Systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the main purpose of the LOOK disk scheduling algorithm.

Operating Systems
The LOOK algorithm moves the disk arm towards the last request in one direction and then [1].
Drag options to blanks, or click blank then click option'
Aignores requests
Bstops permanently
Creverses direction
Dmoves randomly
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming the arm stops permanently after reaching the last request.
Thinking the arm moves randomly without direction.
2fill in blank
medium

Complete the code to describe how C-LOOK differs from LOOK.

Operating Systems
Unlike LOOK, C-LOOK moves the disk arm in one direction and then [1] to the beginning without servicing requests on the return.
Drag options to blanks, or click blank then click option'
Ajumps back
Breverses direction
Cstops
Dservices all requests
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking C-LOOK reverses direction like LOOK.
Assuming C-LOOK services requests on the return trip.
3fill in blank
hard

Fix the error in the statement about LOOK algorithm behavior.

Operating Systems
LOOK algorithm always moves the disk arm to the very end of the disk before [1].
Drag options to blanks, or click blank then click option'
Areversing direction
Bservicing requests
Cstopping permanently
Dignoring requests
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming LOOK always goes to the disk's end.
Confusing LOOK with SCAN algorithm.
4fill in blank
hard

Fill both blanks to complete the description of C-LOOK's disk arm movement.

Operating Systems
C-LOOK moves the disk arm in one direction until the last request, then [1] to the [2] request without servicing requests on the way back.
Drag options to blanks, or click blank then click option'
Ajumps back
Breverses
Cbeginning
Dend
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'reverses' instead of 'jumps back'.
Selecting 'end' instead of 'beginning' for the return point.
5fill in blank
hard

Fill both blanks to complete the dictionary comprehension representing LOOK algorithm's request servicing order.

Operating Systems
look_order = {req: req for req in requests if req {BLANK_2}} current_pos and req {{BLANK_2}} direction_limit{{D}}
Drag options to blanks, or click blank then click option'
A{
B>
C<
D}
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong comparison operators for filtering requests.
Omitting braces in the comprehension.