CS FundamentalsModerateGATE CS
Under SSTF, which situation can make a request wait indefinitely?
- A. Two requests for the same cylinder arriving together
- B. A steady stream of new requests near the current head position keeps it from ever travelling to a far cylinder
- C. A request for cylinder 0 when the head is moving up under SCAN
- D. The disk having more cylinders than pending requests
Correct answer: B. A steady stream of new requests near the current head position keeps it from ever travelling to a far cylinder
SSTF is greedy: if nearby requests keep arriving, a distant request is always farther than some new one, so it can starve. SCAN-family algorithms bound the wait to roughly two sweeps.
More Operating Systems questions
- A disk spins at 6000 RPM, has 200 sectors of 512 B per track, and an average seek time of 6 ms. What is the average time to read 8…
- A disk: 7200 RPM, 500 sectors per track, average seek 4 ms. A file of 2000 sectors is read (a) when stored contiguously on consecutive…
- A Unix-style inode has 10 direct pointers and one single-, one double- and one triple-indirect pointer. Blocks are 1 KB and pointers are 4…
- A file uses an inode with 12 direct pointers, then single-, double- and triple-indirect pointers; blocks are 4 KB with 4-byte pointers…
- A disk of 64 GB uses 8 KB clusters and FAT32-style entries of 4 bytes per cluster. How big is one copy of the FAT?
- A 2 TB disk with 4 KB blocks tracks free space with a bitmap (one bit per block). How large is the bitmap?