In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed?
- Contiguous
- Linked
- Indexed
GATE CSE 2017Operating System › I/O, Disk Scheduling & File SystemsVerified
(D) 2 2 2 and 3 3 3 only
Evaluate each file allocation scheme against the requirement that no external fragmentation is allowed. Contiguous allocation requires a single continuous extent of disk blocks, so as files are created and deleted, free space can become split into scattered holes. Linked and indexed allocation both permit a file's blocks to be scattered across the disk, so they do not create external fragmentation.
Linked and indexed allocation permit a file's blocks to be scattered across disk, so they do not leave external fragmentation. Contiguous allocation requires consecutive blocks and therefore can suffer from external fragmentation. Thus the correct choice is D: 2 and 3 only.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.