A memory is managed using variable partitions but no compaction. It currently has two partitions of sizes and respectively. The smallest allocation request in that could be denied is for
View worked solution
Answer: B
To find the smallest allocation request that could be denied, we need to determine the worst-case distribution of the remaining free memory that minimizes the size of the largest contiguous free block (hole).
- Total memory:
- Allocated partitions: and
- Total occupied memory:
- Total free memory:
With two allocated partitions, the free memory can be divided into at most separate free holes (one before the first partition, one between the two partitions, and one after the second partition).
To minimize the size of the largest free hole, we distribute the of free space as evenly as possible among these holes:
In this configuration, the maximum contiguous free block available is . Consequently, any allocation request of size or more cannot be satisfied and will be denied. Thus, the smallest request that could be denied is .
Free practice · Your answers on this page are not saved.
