332 views
7 votes
7 votes
A $2048\;\text{Kbyte}$ memory is managed using variable partitions but no compaction. It currently has two partitions of sizes $840\;\text{Kbyte}$ and $518\;\text{Kbyte}$ respectively. The smallest allocation request in $\text{Kbyte}$ that could be denied is for ________

1 Answer

Best answer
12 votes
12 votes
With the two given partitions we can view memory like below

$a - 840 - b - 518 -c,$

where, $a + b + c = 2048 - 518 -840 = 690.$

Now, to minimize the size of request to be denied, the holes should be of minimum size. This happens when all of $a,b,c$ are the same. So, $a = b = c = 690/3 = 230$ and the smallest allocation request that could be denied $ = 231 KB.$
selected by
Answer:

Related questions