View worked solution
Answer: 346
In the C-LOOK (Circular LOOK) disk scheduling algorithm, the disk arm moves in one direction servicing requests until there are no more requests in that direction. Then, it immediately jumps back to the furthest request in the opposite direction (without servicing any requests on the return trip) and resumes servicing in the initial direction.
1. Given Data
- Pending requests: (sorted order)
- Initial head position:
- Direction: Towards larger cylinder numbers (upwards)
2. Step-by-Step Execution
Starting at , the head moves towards the larger numbers:
- Forward Pass: Services requests in increasing order up to the largest request: \n
- Circular Return: From the largest request (), the head jumps directly to the smallest pending request () without servicing any intermediate cylinders: \n
- Second Pass: Resumes moving towards larger numbers, servicing the remaining requests: \n
3. Total Head Movement Calculation
Thus, the total head movement incurred is 346 cylinders.
Free practice · Your answers on this page are not saved.
