Skip to content
Official PYQ · 2016

GATE CS 2016 Set 1 Q48 — I/O Scheduling

Explain with AI
Cylinder a disk queue with requests for I/OI/O to blocks on cylinders 47,38,121,191,87,11,92,10.47, 38, 121, 191, 87, 11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder number 6363, moving towards larger cylinder numbers on its servicing pass. The cylinders are numbered from 00 to 199199. The total head movement (in number of cylinders) incurred while servicing these requests is__________.
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: 10,11,38,47,87,92,121,19110, 11, 38, 47, 87, 92, 121, 191 (sorted order)
  • Initial head position: 6363
  • Direction: Towards larger cylinder numbers (upwards)

2. Step-by-Step Execution

Starting at 6363, the head moves towards the larger numbers:

  1. Forward Pass: Services requests in increasing order up to the largest request: Path: 63→87→92→121→191\text{Path: } 63 \to 87 \to 92 \to 121 \to 191\n Head movement=191−63=128\text{Head movement} = 191 - 63 = 128
  2. Circular Return: From the largest request (191191), the head jumps directly to the smallest pending request (1010) without servicing any intermediate cylinders: Path: 191→10\text{Path: } 191 \to 10\n Head movement=191−10=181\text{Head movement} = 191 - 10 = 181
  3. Second Pass: Resumes moving towards larger numbers, servicing the remaining requests: Path: 10→11→38→47\text{Path: } 10 \to 11 \to 38 \to 47\n Head movement=47−10=37\text{Head movement} = 47 - 10 = 37

3. Total Head Movement Calculation

Total Head Movement=128+181+37=346\text{Total Head Movement} = 128 + 181 + 37 = 346

Thus, the total head movement incurred is 346 cylinders.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore I/O Scheduling questions