Recall & Review
beginner
What is contiguous allocation in operating systems?
Contiguous allocation is a method of storing files where each file occupies a set of consecutive blocks on the disk. This means the file's data is stored in one continuous area.
Click to reveal answer
beginner
What is a major advantage of contiguous allocation?
It allows fast access to files because the disk head can read the file in one continuous sweep without moving to different locations.
Click to reveal answer
intermediate
What is a common problem caused by contiguous allocation?
It can cause external fragmentation, where free space is broken into small pieces scattered around the disk, making it hard to find large enough continuous space for new files.
Click to reveal answer
intermediate
How does contiguous allocation affect file size changes?
If a file grows beyond its allocated space, it may need to be moved to a larger continuous space, which can be inefficient and slow.
Click to reveal answer
intermediate
Name one alternative to contiguous allocation to avoid its drawbacks.
Linked allocation or indexed allocation are alternatives that store file blocks non-contiguously, reducing fragmentation and allowing easier file size changes.
Click to reveal answer
What does contiguous allocation require for storing a file?
✗ Incorrect
Contiguous allocation stores files in consecutive disk blocks to allow fast sequential access.
Which problem is most associated with contiguous allocation?
✗ Incorrect
External fragmentation happens when free space is split into small pieces, making it hard to allocate large continuous blocks.
Why might a file need to be moved in contiguous allocation?
✗ Incorrect
If a file grows larger than its allocated continuous space, it must be moved to a bigger continuous area.
Which of these is NOT an advantage of contiguous allocation?
✗ Incorrect
Contiguous allocation suffers from external fragmentation, so 'No fragmentation' is incorrect.
Which allocation method stores file blocks non-contiguously to reduce fragmentation?
✗ Incorrect
Linked allocation stores file blocks scattered but linked, reducing fragmentation problems.
Explain how contiguous allocation works and why it can cause fragmentation.
Think about how files are placed on disk and what happens when space is limited.
You got /3 concepts.
Describe one advantage and one disadvantage of contiguous allocation.
Consider speed and space management.
You got /2 concepts.