Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Microcomputers Interview Question:
What is Buddy system of memory allocation?
Submitted by: AdministratorFree memory is maintained in linked lists, each of equal sized blocks. Any such block is of size 2k. When some memory is required by a process, the block size of next higher order is chosen, and broken into two. Note that the two such pieces differ in address only in their kth bit. Such pieces are called buddies. When any used block is freed, the OS checks to see if its buddy is also free. If so, it is rejoined, and put into the original free-block linked-list.
Submitted by:
Submitted by:
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.