Skip to content

This program provides user with an API for Pool initialization. It uses Best Free Space algorithm to find a block with optimum size.

Notifications You must be signed in to change notification settings

shahqaan/memory-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

memory-manager

This file provides user with an API for Pool initialization. It initializes memory pool according to the size provided to the program. Best free space implements the best fit algorithm to find block with optimum size. Allocate_memory, allocates memory to different modules with a structure at the begining of every block. Defragment is implemented to remove the complications when too many small blocks starts to exist with in the memory making it impossible for large process to run. Free memory, frees a block allocated to a module and makes it available for any other module. If a module who has already been allocated memory wish to use more memory in that case reallocate memory allocates more memory to that block or either re-locate it to a new place.

About

This program provides user with an API for Pool initialization. It uses Best Free Space algorithm to find a block with optimum size.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages