Which of the following best describes the main characteristic of contiguous file allocation?
Think about how the file blocks are arranged physically on the disk.
Contiguous allocation stores all file blocks next to each other on disk. This allows fast sequential access but can cause external fragmentation because free space may be split into small pieces.
What is a key disadvantage of linked file allocation compared to contiguous allocation?
Consider how the system finds the next block in linked allocation.
Linked allocation stores file blocks anywhere on disk with pointers linking them. Accessing a block requires following pointers sequentially, which slows down random access compared to contiguous allocation.
Why does indexed file allocation improve random access compared to linked allocation?
Think about how the system finds a specific block in indexed allocation.
Indexed allocation uses a special index block that holds pointers to all the file's blocks. This allows the system to jump directly to any block, improving random access speed compared to linked allocation.
Which file allocation method is most prone to external fragmentation, and why?
Consider how each method allocates space and what happens when disk space is fragmented.
Contiguous allocation needs consecutive free blocks for a file. Over time, free space breaks into small pieces, causing external fragmentation. Linked and indexed methods do not require consecutive blocks, so they avoid this problem.
A system needs to store very large files and allow fast random access to any part of the file. Which file allocation method is best suited, and why?
Think about how each method supports random access and file size limits.
Indexed allocation supports large files by using an index block that points to all file blocks. This allows direct access to any block, making random access fast even for large files. Contiguous allocation struggles with large files due to fragmentation, and linked allocation is slow for random access.