In a file allocation system, the following allocation schemes are used: (A) Contiguous allocation, (B) Indexed allocation, (C) Linked allocation. Which allocation scheme(s) will NOT suffer from external fragmentation?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. (B) and (C) only
Explanation
External fragmentation arises when free disk space is broken into small, scattered gaps because a file must occupy a contiguous run of blocks — exactly the weakness of contiguous allocation (A), since it needs a sufficiently large free contiguous region. In indexed allocation (B) and linked allocation (C), a file's blocks can be scattered anywhere on disk and are tied together via an index block or in-block pointers respectively, so free space never needs to be contiguous and no external fragmentation results. Hence only B and C avoid external fragmentation, option (iii).More Database Management Systems questions
- Suppose a Linux file system has a block size of 2K bytes, a disk address is 32 bits, and an i-node contains the disk addresses of the first…
- Consider a disk system having 60 cylinders. Disk requests are received by the disk drive for cylinders 10, 22, 20, 2, 40, 6, and 38, in tha…
- A disk queue has requests for I/O on cylinders 98, 183, 37, 122, 14, 124, 65, 67, with the disk head currently at cylinder 53. Using the sh…
- Consider the following statements about UNIX file permissions: (A) UNIX provides three permission types — Read, Write and Execute. (B) UNIX…
- In the ________ disk scheduling algorithm, the disk head moves from one end of the disk to the other, servicing requests along the way. Whe…
- Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. Th…