2,829 views
4 votes
4 votes
Consider 900 KB memory is managed using variable partitions but no compaction. It currently has three process occupied partition of sizes 212 KB, 114 KB and 100 KB respectively. What is the smallest allocation request that could be denied?

1 Answer

Best answer
10 votes
10 votes

Complexity lies in this question is.... how much size of small holes can you created?

 

with n processes ==> you can create minimum 1 hole ===> you can identify The maximum Process can be denied

P1 P2 P3 hole
212 114 100 474

Therefore if a process comes with size 475 KB you can't allocate.

 

with n processes ==> you can create maximum n+1 holes ===> you can identify The minimum Process can be denied

hole P1 hole P2 hole P3 hole
  212   114   100  

 

     hole size = $\frac{Total \; size\; available}{no.of holes}$ = $\frac{474}{4}$ = 118.5

 Therefore two holes get 118 KB and two holes can get 119 KB

Therefore if a process comes with size 120 KB you can't allocate.

 

( if you have doubt that why holes must be equal size, then if you decrease size of one hole then one of the remaining holes size must be increased then you can allocate 120 KB process )

edited by

Related questions

812
views
0 answers
1 votes
717
views
1 answers
1 votes
SWETHA MURUGANANDHAM asked Apr 23
717 views
Consider a system with 32 KB of physical memory and the following memory allocation requests from processes: Process P1 requests 10 KB of memory. Process P2 ... allocation techniques: 1. First Fit 2. Best Fit 3. Worst Fit
689
views
0 answers
0 votes
Nidhi Budhraja asked Oct 1, 2018
689 views
Is it true that we can allocate only one process to one block?In First fit memory allocation scheme, can we allocate two processes to the same block of memory if block has the capacity to accommodate both of them?
8.0k
views
1 answers
2 votes
atul_21 asked Jan 10, 2018
7,995 views
Consider the requests from processes in given order $300K$, $25K$, $125K$ and $50K$. Let there be two blocks of memory available of size $150K$ followed ... with size $100KB$ can't be allocated to this partition.Which approach is correct?