Which of the following best describes contiguous allocation in file storage?
Think about how files are placed physically on the disk and the impact on speed and fragmentation.
Contiguous allocation stores files in consecutive disk blocks, which allows fast access but can cause external fragmentation as free space gets divided into small chunks.
What type of fragmentation is most commonly associated with contiguous allocation?
Consider how free space is divided when files are stored in consecutive blocks.
External fragmentation happens because free space is broken into small pieces that may not be large enough for new files, a common issue in contiguous allocation.
A disk has 1000 blocks. Files A, B, and C occupy 200, 300, and 100 contiguous blocks respectively. If the free space is fragmented into three parts of 150, 100, and 150 blocks scattered across the disk, what is the largest file size that can be stored contiguously?
Look for the largest single free space chunk available for contiguous storage.
The largest contiguous free space chunk is 150 blocks, so the largest file that can be stored contiguously must fit within that size.
Which of the following is a key disadvantage of contiguous allocation compared to linked allocation?
Think about how files are stored and the impact on free space management.
Contiguous allocation causes external fragmentation because files must occupy consecutive blocks, often requiring disk compaction to reclaim space.
If a file stored using contiguous allocation needs to grow beyond its allocated space, what is the most likely consequence?
Consider the requirement for contiguous blocks and what happens if the next blocks are occupied.
Since contiguous allocation requires consecutive blocks, if the file grows beyond its space, it must be relocated to a larger free contiguous area, which is costly.