Multiple choice

In which partitioning can the space allocations be conveniently handled in sizes of power of 2?

  1. Fixed partition

  2. The buddy system of partitioning

  3. Variable sized partition

  4. Horizontal partition

  5. Vertical partition

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The buddy system of partitioning allocates spaces in sizes of power of 2. There are two ways in which the buddy system allocates space. Suppose we have a hole which is the closest power of two, in that case, that hole is used for allocation. In case we do not have that situation then we look for the next power of 2 hole size, split it in two equal halves and allocate one of these. Because we always split the holes in two equal sizes, the two are "buddies". Hence, the name buddy system.