文件名称:buddy_allocte
介绍说明--下载内容均来自于网络,请自行研究使用
1.实现一个内存管理的伙伴算法,实现内存块申请时的分配和释放后的回收。
实验准备
用随机函数仿真进程进行内存申请,并且以较为随机的次序进行释放。对其碎片进行统计,当申请分配内存失败时区分实际空间不足和由于碎片而不能满足。
-1. To implement a memory management algorithm partners to achieve the allocation of memory blocks and release time of application after the recovery. Experimental preparation processes with random memory function simulation applications, and a more random order of release. Statistics of its fragments, when an application fails to allocate memory and distinguish between the actual space can not satisfy the debris.
实验准备
用随机函数仿真进程进行内存申请,并且以较为随机的次序进行释放。对其碎片进行统计,当申请分配内存失败时区分实际空间不足和由于碎片而不能满足。
-1. To implement a memory management algorithm partners to achieve the allocation of memory blocks and release time of application after the recovery. Experimental preparation processes with random memory function simulation applications, and a more random order of release. Statistics of its fragments, when an application fails to allocate memory and distinguish between the actual space can not satisfy the debris.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
buddy_allocte.cpp