Skip to content

A visualization tool for memory allocation with a dirty implementation, including first-fit, best-fit, worst-fit, next-fit and buddy algorithm.

License

Notifications You must be signed in to change notification settings

Asthestarsfalll/MemAlloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MemAlloc

A visualization tool for memory allocation with a dirty implementation, including first-fit, best-fit, worst-fit, next-fit and buddy algorithm.

This is my first C project.

Overview

For the first four algorithms, use white color for spare memory block, and other 6 color depends on PID:

image-20221207193751463

For buddy algorithm, use black color representing those spare block which can not be allocated:

image-20221207194712383

And furthermore memalloc also support to emulate process allocation and free, within a specified time span:

gif

Usage

sh build.sh && ./build/memalloc

TODO

  • Fix bug of buddy algorithm
  • Imporve interaction and interface
  • More efficient maybe
  • Refactor by C++
  • Compile and run on Windows

About

A visualization tool for memory allocation with a dirty implementation, including first-fit, best-fit, worst-fit, next-fit and buddy algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published