首页| 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
  • 猕猴桃 1天前 成为了本站会员

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

  • 开心快活人 1天前 成为了本站会员

  • 晋财 1天前 成为了本站会员

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

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

  • 柳贻 2天前 成为了本站会员

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

  • 焦昱贺 2天前 成为了本站会员

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

0.172996s