Question: Question 5 [ 2 0 Marks ] ( a ) Conceptually, the heap area of an execution image is in between the Data and Stack
Question Marks
a Conceptually, the heap area of an execution image is in between the Data and Stack areas. This is because we would like to keep the stack at the high end of the virtual address space. In practice, the heap area can be located after the stack area, as shown below.
In this case, brk sbrk would extend the heap area toward the right. Assume that the maximal heap size is KB
Design an algorithm for this kind of brk sbrk
b Design an algorithm for memory compaction for our kernel in real mode x The algorithm will be used by kmalloc ie if there is not enough memory and there are multiple holes, move all the process images to the high end of memory and try to allocate memory again. Note that, if a process image is moved, its saved segment registers in both the PROC and user mode stack must be adjusted to suit the new segments.
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
