Assume there is an initial 1024 KB segment where memory is allocated using the Buddy System. Using Figure 9.27 as a guide, draw the tree illustrating how the following memory requests are allocated:
• request 240 bytes
• request 120 bytes
• request 60 bytes
• request 130 bytes
Next, modify the tree for the following releases of memory. Perform coalescing whenever possible:
• release 240 bytes
• release 60 bytes
• release 120 bytes