Location:
Search - Buddy_system
Search list
Description: 采用伙伴算法管理空闲区,并增加已分配区表。
可以建立7个链表 ,分别来管理大小为210、 29、 28、 27、 26、 25、 24 块的空闲区,每块大小为16个字节。假定内存一开始有一个210的块和一个26的块,其它为空。实现内存的分配不回收。每次分配和回收后,都要显示程序运行结果。
每次分配和回收后,都要显示。-Free zone management by partners algorithm, and to increase the allocated area table. Can create 7 list, respectively, to manage the size of 210, 29, 28, 27, 26, 25, 24 of the free area, the size of each block of 16 bytes. Assume that there is a memory of a block and a 26 210 block, others are empty. Not achieve the allocation of memory recovery. Distribution and recovery time after the run results to be displayed. After each allocation and recovery should show.
Platform: |
Size: 2048 |
Author: lulu |
Hits:
Description: linux内存分配的经典算法buddy_system的基本算法-linux memory allocation of the basic algorithm of the classical algorithm buddy_system
Platform: |
Size: 2048 |
Author: |
Hits: