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)?

  1. A. 60
  2. B. 1
  3. C. 2
  4. 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

Exams that ask this topic