首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 一个简单的内存管理器用C可用于分配/释放内存块。

一个简单的内存管理器用C可用于分配/释放内存块。

资 源 简 介

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.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP