CS FundamentalsVery hardGATE CS
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 tracks (assume one initial seek and latency, and ignore track-to-track movement), and (b) when its sectors are scattered randomly (every sector needs its own average seek and latency). Approximately how long does each take?
- A. (a) 41.5 ms, (b) 83.00 s
- B. (a) 8.2 ms, (b) 16.37 s
- C. (a) 41.5 ms, (b) 16.37 s
- D. (a) 41.5 ms, (b) 8.00 s
Correct answer: C. (a) 41.5 ms, (b) 16.37 s
Rotation = 8.33 ms. (a) 4 + 4.17 + 4 rotations × 8.33 = 41.5 ms. (b) per sector 4 + 4.17 + 0.017 ≈ 8.18 ms, × 2000 ≈ 16.37 s. Layout dominates disk performance.
More Operating Systems questions
- 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?
- A file of 100 blocks uses linked allocation (each block holds a pointer to the next). No blocks are cached and the directory entry gives…
- A 200-block file is stored with contiguous allocation and there is no free space after it, but enough before it. The file control block is…