EBK COMPUTER SYSTEMS
EBK COMPUTER SYSTEMS
3rd Edition
ISBN: 8220101459107
Author: O'HALLARON
Publisher: YUZU
Question
Book Icon
Chapter 9.9, Problem 9.7PP
Program Plan Intro

Dynamic allocator:

Dynamic allocator keeps the heap as a group of several size blocks; each block is an attached portion of virtual memory which is allocated or free.

  • An allocated block has been clearly kept for use by the application.
  • A free block is offered to be allocated.

Two types of allocators:

  1. 1. Explicit allocators
  2. 2. Implicit allocators

Explicit allocators:

Explicit allocators need the application to explicitly free any allocated blocks.

Implicit allocators:

Implicit allocators is the method of automatically releasing vacant allocated blocks. This is also known as garbage collection.

Implicit free list:

In this method, a block contains one word header, payload and additional padding. The header encrypts the block size, which contains header and padding; and check the block is allocated or free.

  • If the arrangement is single-word, the block size is constantly a multiple of “4” and the low-order bits of the block size are always zero.
  • If the arrangement is double word, the block size is constantly a multiple of “8” and the low-order bits of the block size are always zero.
  • Thus, essential to store only the high-order “29 bits” of the block size, freeing the remaining “3 bits” to encrypt other information.
  • Here, smallest significant bits is using to represent the block is allocated or free.

Blurred answer
Students have asked these similar questions
Kindly complete the table
Write program to initialize a 3*4 matrix, calculate every row and coloumn total and display them with an appropriate message. Note: subject: C++ Deptt: CS/IT Note: write program in codeblocks.
in c language as soon as possible 3) give a randomly ordered array of n elements; partition the elements into two arrays such that the elements that are <= mode of the set is one subset and the elements> mode of the set in other subset thease subsets should be created with exact number of elements (use dynamic memory allocation techniques)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Systems Architecture
    Computer Science
    ISBN:9781305080195
    Author:Stephen D. Burd
    Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning