CS FundamentalsHardGATE CS · Advanced
A disk has cylinders 0-199. The head is at cylinder 96 and is moving towards higher numbers; the pending requests are for cylinders 21, 176, 60, 134, 12, 141, 88, 105, 150, 34. Under C-LOOK scheduling (service upwards to the highest request, then jump straight back to the lowest pending request and continue upwards), what is the total head movement in cylinders, counting the return jump?
- A. 390
- B. 320
- C. 168
- D. 260
Correct answer: B. 320
Upward sweep 96 to 176 = 80, return jump 176 to 12 = 164, then 12 to 88 = 76: total 320. C-SCAN goes to 199 and to 0 (390); leaving out the jump gives 156.
More Operating Systems questions
- A file system uses 2 KB blocks and 4-byte block pointers. Each inode has 12 direct pointers plus one single-, one double- and one…
- A 32-bit machine uses two-level paging with 4 KB pages and 4-byte entries (10 bits for the top level, 10 for the second level, 12 for the…
- A paged system has a 10 ns TLB lookup and 100 ns per memory access, with a 95% TLB hit ratio. A TLB miss costs a two-level page-table…
- A semaphore s is initialised to 0. Three threads run concurrently, and print(X) prints the single letter X atomically. Thread 1: print(A)…
- Two threads share an integer x initialised to 0. Thread 1 executes the loop body x = x + 1 three times; Thread 2 executes it twice. Each…
- Four periodic tasks (computation time C, period T = relative deadline), all released at t = 0, are scheduled by preemptive rate-monotonic…