CS FundamentalsModerateGATE CS
A disk has cylinders 0-199. The head is at cylinder 50 moving towards higher numbers. Pending requests: 176, 79, 34, 60, 92, 11, 41, 114. Counting the long return seek (jump) as head movement, what is the total movement under C-LOOK?
- A. 321
- B. 156
- C. 291
- D. 389
Correct answer: A. 321
Order: 60, 79, 92, 114, 176 (126 cylinders), jump 176 to 11 (165), then 11, 34, 41 (30 more): 126+165+30 = 321. LOOK would be 291, C-SCAN 389, and 156 is C-LOOK without the return jump.
More Operating Systems questions
- A 1024 KB buddy system (minimum block 32 KB, lowest-address-first allocation) serves A=70 KB, B=35 KB, C=80 KB, D=60 KB in that order…
- A system uses the clock (second-chance) page replacement with 4 frames. Initially all frames are empty; a page has its reference bit set…
- Memory access takes 200 ns. A page fault on a clean victim takes 8 ms to service and on a dirty victim 20 ms; 40% of victims are dirty…
- A system has 48-bit virtual addresses, 8 KB pages and 16 GB of physical memory. An inverted page table has one entry per frame, holding a…
- A FAT file system on a 2 TB partition uses 8 KB blocks. Each FAT entry holds a block number plus 4 control bits and entries are rounded up…
- A Unix-style inode has 10 direct pointers and one single, one double and one triple indirect pointer. Blocks are 2 KB and pointers are 4…