EXAMRADAR

Question: Which of the following statement is true for buddy system 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:

Buddy System splits and recombines memory blocks in a predetermined manner during allocation and deallocation.
When a request is made for m bytes. the system finds the smallest power of 2 that is ≥ m. Let this be 2i.if the list is empty, it checks the lists for block of size 2i+1.it takes one block off this list and splits it into two halves of size 2i.it put one of these blocks into the free list of size 2i,and uses the other block to satisfy the request.

MCQ: Which of the following statement is true for buddy system 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:

Buddy System splits and recombines memory blocks in a predetermined manner during allocation and deallocation.
When a request is made for m bytes. the system finds the smallest power of 2 that is ≥ m. Let this be 2i.if the list is empty, it checks the lists for block of size 2i+1.it takes one block off this list and splits it into two halves of size 2i.it put one of these blocks into the free list of size 2i,and uses the other block to satisfy the request.

Discuss a Question

Related Questions

You may be interested in:

OS Memory Management MCQs

Recently Added Articles

Kahoot Winner Strategies

Top 5 Kahoot Winner Strategies Students Are Using Right Now

Last updated on: May 14, 2025Posted by: ExamRadar

Daily Routine to Cover the RBI Grade B Syllabus Fast

Last updated on: May 14, 2025Posted by: ExamRadar

How Can AI Simplify the Academic Life of Students?

How Can AI Simplify the Academic Life of Students?

Last updated on: April 16, 2025Posted by: ExamRadar

Want to Clear IBPS RRB PO? Master These Mock Test Hacks!

Last updated on: March 10, 2025Posted by: ExamRadar

Top AI Tools for Instantly Detecting Plagiarized Writing

Last updated on: December 5, 2024Posted by: ExamRadar

5 Important Tools for System Administrators

Last updated on: December 1, 2024Posted by: ExamRadar