Disk Scheduling · Operating System
10 questions · asked in 8 of 27 years (2000–2026)
MCQ 6 · NAT 41-mark 5 · 2-mark 5
2000Questions per year2026
Questions 1–5 of 10
Consider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.
(P,155),(Q,85),(R,110),(S,30),(T,115)
Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests.
Which one of the following statements is FALSE?
(P,155),(Q,85),(R,110),(S,30),(T,115)
Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests.
Which one of the following statements is FALSE?
Answer: (B)
SSTF order, head at 100:
R (110, seek 10) T (115, 5) Q (85, 30) S (30, 55) P (155, 125)
- T before P: True
- "Q after S but before T": Q is served before S and after T FALSE
- Head reverses between Q and P (down to S, then up to P): True
- R before P: True
Answer: Q is serviced after S, but before T
R (110, seek 10) T (115, 5) Q (85, 30) S (30, 55) P (155, 125)
- T before P: True
- "Q after S but before T": Q is served before S and after T FALSE
- Head reverses between Q and P (down to S, then up to P): True
- R before P: True
Answer: Q is serviced after S, but before T
Consider a storage disk with 4 platters (numbered as 0, 1, 2 and 3), 200 cylinders (numbered as 0, 1, ... , 199), and 256 sectors per track (numbered as 0, 1, ... , 255). The following 6 disk requests of the form [sector number, cylinder number, platter number] are received by the disk controller at the same time:
[120, 72, 2] , [180, 134, 1] , [60, 20, 0] , [212, 86, 3] , [56, 116, 2] , [118, 16, 1]
Currently the head is positioned at sector number 100 of cylinder 80, and is moving towards higher cylinder numbers. The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts. Power dissipation associated with rotational latency and switching of head between different platters is negligible.
The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is _______.
[120, 72, 2] , [180, 134, 1] , [60, 20, 0] , [212, 86, 3] , [56, 116, 2] , [118, 16, 1]
Currently the head is positioned at sector number 100 of cylinder 80, and is moving towards higher cylinder numbers. The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts. Power dissipation associated with rotational latency and switching of head between different platters is negligible.
The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is _______.
Answer: 85
Only cylinders count here. SSTF order from 80: 86 (6), 72 (14, reverse), 116 (44, reverse), 134 (18), 20 (114, reverse), 16 (4).
Head movement = 200 cylinders 2 20 = 40 mW. Reversal power = 3 3 15 = 45 mW.
Sum = 85 mW
Answer: 85
Head movement = 200 cylinders 2 20 = 40 mW. Reversal power = 3 3 15 = 45 mW.
Sum = 85 mW
Answer: 85
Consider a disk queue with requests for I/O to blocks on cylinders 47,38,121,191,87,11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder number 63, moving to wards larger cylinder numbers on its servicing pass. The cylinders are numbered from 0to 199. The total head movement (in number of cylinders) incurred while servicing these requests is____ .
Answer: 346
Start at 63 and move up: serve 87, 92, 121, 191. This movement is 191 63 = 128. Then jump to the lowest request 10, which costs 191 10 = 181. Then serve 11, 38, 47, which costs 47 10 = 37.
Total = 128 + 181 + 37 = 346
Answer: 346
Total = 128 + 181 + 37 = 346
Answer: 346
Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given: 45, 20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 50. The additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF) algorithm is used compared to the SCAN (Elevator) algorithm (assuming that SCAN algorithm moves towards 100 when it starts execution) is____________ tracks.
Answer: 10
SSTF always serves the request nearest to the head. Starting at 50 the order is 50, 45, 60, 70, 80, 90, 25, 20, 10. (From 45 the nearest is 60, at distance 15, against 25 at distance 20. After 90 the nearest is 25.)
Movement tracks.
SCAN first moves towards 100, serving requests on the way. Here the head is taken to turn back at the last request on that side, track 90, and not to run on to the end of the disk. Then it sweeps down to the lowest request, 10. (If it ran on to track 99 before turning, the distances would change; this answer uses the turn at 90.)
Movement tracks.
Extra distance for SSTF tracks.
Answer: 10
Movement tracks.
SCAN first moves towards 100, serving requests on the way. Here the head is taken to turn back at the last request on that side, track 90, and not to run on to the end of the disk. Then it sweeps down to the lowest request, 10. (If it ran on to track 99 before turning, the distances would change; this answer uses the turn at 90.)
Movement tracks.
Extra distance for SSTF tracks.
Answer: 10
Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time the disk arm is at cylinder 100, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135 and 145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 90 is serviced after servicing ____________ number of requests.
Answer: 3
SSTF starts at 100: first 100 (distance 0), then 105 (5), then 110 (5), then 90 (20, nearer than 135 at 25).
So 90 is served after 3 requests.
Answer: 3
So 90 is served after 3 requests.
Answer: 3
Keep practising
Topics in Operating System
System CallProcessThreadProcess SynchronizationDeadlockCPU Scheduling
Disk SchedulingYou are here
Memory ManagementFile Systems