Question: Consider a memory management scenario where a system has a total memory size of 1 0 0 0 K B and allocates memory in blocks
Consider a memory management scenario where a system has a total memory size of and allocates memory in blocks of Initially, the memory is completely free and available for allocation. Students are requested to perform the following tasks:
Allocation Scenario:
Assume the following memory allocation requests are made:
Process A requests KB of memory.
Process requests of memory.
Process requesitis of memory.
Process D requests KB of memory.
Allocate memory for each process using the "First Fit" and "Best Fit" allocation strategy.
After allocation, calculate and display the amount of internal fragmentation for each process, if any.
Deallocation Scenario:
Assume that Process B completes its execution and releases the allocated memory.
Now deallocate memory previously allocated to Process B
After deallocation, calculate and display the amount of external fragmentation, if any, in the memory system.
Which strategy overall was a better choice for the scenario? Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
