Buddy system of memory allocation

Illustrate briefly the Buddy system of memory allocation?

E

Expert

Verified

Free memory is maintained in linked lists, each of equivalent sized blocks. Any such block is of size 2^k. if some memory is necessitated by a process, the block size of next higher order is selected, and broken into two. Note that the two these pieces different in address only in their kth bit. These pieces are termed as buddies. When any employed block is freed, the Operating System confirms to see if its buddy is as well free. If so, it is rejoined, and place into the original free-block linked-list.

   Related Questions in Operating System

©TutorsGlobe All rights reserved 2022-2023.