首页| 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
  • 3小时前 成为了本站会员

  • 睥睨 1天前 成为了本站会员

  • ? 1天前 成为了本站会员

  • IATWAY 2天前 成为了本站会员

  • 大智若愚 2天前 成为了本站会员

  • Mason 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • Half_Punch 3天前 成为了本站会员

  • liqing71718 3天前 成为了本站会员

  • 伟国 3天前 成为了本站会员

0.304722s