没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > memorymanager |
memorymanager
|
0 | 0 | 2 |
贡献者 | 讨论 | 代码提交 |
概述
This project demonstrates how memory management works, how malloc/free works. A large chunk of memory is allocated and assigned to the memory manager. Then on-request the memory manager allocates chunks for memory to the user. The memory manager returns a pointer. It uses a binary tree to sort the free-chunk-list and the used-chunk-list. When the user deallocates the chunks, memory manager tries to join the adjacent free chunks to create a big free chunk. This is how it solves the problem of fragmentation. This project is completely written in C language and have been tested on MSVC and GCC. This project is primarily meant for educational purposes but can also be used for commercial applications.
创建时间:2014-05-07 00:33