Similar questions 2 more →
I/O & Disk Scheduling


Answer & solution
Official answer: B
Worked explanation
Recompute the nearest remaining request after every move. From 100, distances to P,Q,R,S,T are 55,15,10,70,15, so R wins. From 110, T is 5 away; from 115, Q is 30 away versus P at 40 and S at 85, so Q wins. From 85, S is 55 away versus P at 70, so S wins, leaving P. The path is 100→110→115→85→30→155. T and R both precede P, and movement changes from decreasing to increasing at S between Q and P. B reverses the actual relation of Q to both S and T.
Derivation and answer
From100, nearest requests are R110 thenT115 thenQ85 thenS30 thenP155. The head distances for these choices are 10, 5, 30, 55, 125. Thus Q is before S and after T, making B false. The other assertions hold, including reversal at S between servicing Q andP.
![Question 53, GATE 2018: Disk has 4 platters, 200 cylinders and 256 sectors/track. Requests [sector,cylinder,platter]: [120,72,2],[180,134,1],[60,20,0],[212,86,3],[56,116,2],[118,16,1]. Head starts sector 100,cylinder 80 moving upward. SSTF movement costs are stated as 20 mW per 100 cylinders plus 15 mW per reversal; rotation/platter costs ignored. Find the intended total.](../../../assets/questions/CS-2018-Q63-1.webp)







































