Question: Q2. A buddy system allocator is initialized with memory whose size is 64 KB. Requests for allocation of memory in Blocks of size 2 KB,
Q2. A buddy system allocator is initialized with memory whose size is 64 KB. Requests for allocation of memory in Blocks of size 2 KB, 11 KB, 120 bytes, and 20 KB arrive in that order to the buddy system allocator.
a. Show the allocation status and free lists
of the allocator. How many splits were performed?[3M]
b. Show the allocation status and free lists of the allocator after the block of 120 bytes is
freed. How many coalesce(combine) operations were performed?[3M]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
