EXAMRADAR

Question: Which of the following statement is true for Power-of-2 allocators? <ol> <li>Buddy System splits and recombines memory blocks in a predetermined manner during allocation and deallocation.</li> <li>No splitting of blocks takes place, also no effort is made to coalesce adjoining blocks to form larger blocks; when released, a block is simply returned to its free list.</li> <li> When a request is made for m bytes, the allocator first check the free list containing blocks whose size is 2<sup>i</sup> for the smallest value of i such that 2<sup>i</sup> ≥ m.if the free list is empty ,it checks the list containing blocks that are higher the next higher power of 2 in size on so on. an entire block is allocated to a request.</li> <li> When a request is made for m bytes. the system finds the smallest power of 2 that is ≥ m. Let this be 2<sup>i</sup>.if the list is empty, it checks the lists for block of size 2<sup>i+1</sup>.it takes one block off this list and splits it into two halves of size 2<sup>i</sup>.it put one of these blocks into the free list of size 2<sup>i</sup>,and uses the other block to satisfy the request.</li> </ol>

Answer:

No splitting of blocks takes place, also no effort is made to coalesce adjoining blocks to form larger blocks; when released, a block is simply returned to its free list.
When a request is made for m bytes ,the allocator first check the free list containing blocks whose size is 2i for the smallest value of i such that 2i ≥ m. If the free list is empty, it checks the list containing blocks that are higher the next higher power of 2 in size on so on. an entire block is allocated to a request.

MCQ: Which of the following statement is true for Power-of-2 allocators? <ol> <li>Buddy System splits and recombines memory blocks in a predetermined manner during allocation and deallocation.</li> <li>No splitting of blocks takes place, also no effort is made to coalesce adjoining blocks to form larger blocks; when released, a block is simply returned to its free list.</li> <li> When a request is made for m bytes, the allocator first check the free list containing blocks whose size is 2<sup>i</sup> for the smallest value of i such that 2<sup>i</sup> ≥ m.if the free list is empty ,it checks the list containing blocks that are higher the next higher power of 2 in size on so on. an entire block is allocated to a request.</li> <li> When a request is made for m bytes. the system finds the smallest power of 2 that is ≥ m. Let this be 2<sup>i</sup>.if the list is empty, it checks the lists for block of size 2<sup>i+1</sup>.it takes one block off this list and splits it into two halves of size 2<sup>i</sup>.it put one of these blocks into the free list of size 2<sup>i</sup>,and uses the other block to satisfy the request.</li> </ol>

Correct Answer: A. 1 only

Explanation:

No splitting of blocks takes place, also no effort is made to coalesce adjoining blocks to form larger blocks; when released, a block is simply returned to its free list.
When a request is made for m bytes ,the allocator first check the free list containing blocks whose size is 2i for the smallest value of i such that 2i ≥ m. If the free list is empty, it checks the list containing blocks that are higher the next higher power of 2 in size on so on. an entire block is allocated to a request.

Discuss a Question

Related Questions

You may be interested in:

OS Memory Management MCQs

Recently Added Articles

5 Best Amazon Advertising Agencies for Growing Brands

Last updated on: November 6, 2026Posted by: ExamRadar

Best Free AI Humanizers for Academic Writing

Last updated on: October 30, 2026Posted by: ExamRadar

How Image to Text Conversion Make Printed Study Materials Easier to Use?

Last updated on: October 23, 2026Posted by: ExamRadar

7 Best Online Exam Makers for Teachers, Schools, and Businesses

Last updated on: October 21, 2026Posted by: ExamRadar

How to pick a Bintan resort when you’ve only got 48 hours

Last updated on: September 23, 2026Posted by: ExamRadar

Features to Look for While Choosing the Best Automation Tool

Last updated on: July 15, 2026Posted by: ExamRadar

AI vs Machine Learning: Key Differences Every Professional Should Know

Last updated on: February 13, 2026Posted by: ExamRadar