1.

What is buddy memory management of free lists ?(a) modified version of first fit(b) buddy allocation keeps several‭ ‬free lists,‭ ‬each one holds blocks which are of one particular size(c) modified version of best fit(d) a tree representation of free listsI'd like to ask this question from Free List topic in portion Types of Lists of Data Structures & Algorithms IThe question was asked during an interview for a job.

Answer»

Correct answer is (b) BUDDY allocation keeps several‭ ‬free lists,‭ ‬each ONE holds blocks which are of one PARTICULAR size

The best explanation: When an allocation request is received,‭ ‬the list that holds blocks that are just large ENOUGH to satisfy the request are considered, and an open location is returned.‭ ‬If no‭ ‬free‭ ‬blocks that are smaller than two times the size that are requested are available,‭ ‬a larger block is split in two to satisfy the requirements.



Discussion

No Comment Found

Related InterviewSolutions