CS FundamentalsHardGATE CS
Disk cylinders 0–199; head at 100, moving toward higher cylinders. Requests: 55, 58, 39, 18, 90, 160, 150, 38, 184. Which algorithm gives the LEAST total head movement among FCFS, SSTF, SCAN and LOOK?
- A. SSTF (248)
- B. FCFS (498)
- C. SCAN (280)
- D. LOOK (250)
Correct answer: A. SSTF (248)
Totals: FCFS 498, SSTF 248, SCAN 280, LOOK 250. On this queue the greedy SSTF choice happens to win; LOOK is close behind because it avoids SCAN's trip to the end.
More Operating Systems questions
- Under SSTF, which situation can make a request wait indefinitely?
- 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?