Question 141: What will be the disadvantage when the files will be allocated only on contiguous blocks on the disk?
- Head of the disk will require too much movement to traverse the file.
- Head of the disk will require minimal movement as the file is contiguous.
- It will be difficult to calculate the block location of block I of a file.
- It will be difficult to find the contiguous space for a large file in the disk and file size growth would be a heavy operation.
Solution: The correct answer is option 4. Head of the disk movement will be minimal as the file is contiguous, hence this is advantage. Also, calculating the block “i” would be easy as they are sequential. The problem is that dynamic growth as we are not sure that there will be enough blocks available after the allocated blocks. In the worst case we will need to move the whole file.