CS FundamentalsModerateGATE CS
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 the first block. How many disk reads are needed to read block number 60 (blocks numbered from 1)?
- A. 60
- B. 1
- C. 2
- D. 59
Correct answer: A. 60
Linked allocation has no random access: blocks 1 to 59 must each be read to find the pointer to the next, and then block 60 itself: 60 reads. Indexed allocation would need 2 (index block + data).
More Operating Systems questions
- 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…
- Four identical 2 TB disks are combined. What usable capacity do RAID 0, RAID 1+0 (striped mirrors) and RAID 5 give, respectively?
- In a 5-disk RAID 5 array, a small write updates a single data block. Using the read-modify-write method, how many disk I/O operations does…
- Which RAID level can survive the failure of ANY two disks at the same time?
- A device transfers data at 2 MB/s using programmed I/O with an interrupt per byte; handling each interrupt takes 2 µs of CPU time. What…
- A disk has average seek 8 ms, average rotational latency 4 ms and a sustained transfer rate of 100 MB/s. What is the effective bandwidth…