摘要
针对W ebitOS的内存分配和回收策略容易形成多个碎片的问题,分别提出了内存分配过程中的内存分配优化算法(AOA)和内存回收过程中的内存回收优化算法(COA)。AOA算法在内存分配过程中通过设定一个可分割阀值避免小碎片的产生;COA算法在内存回收过程中将地址连续的内存块合并成较大的空闲区,减少链表中小空闲区数目,提高了内存空间的利用率。实验结果表明,内存分配优化算法(AOA)和内存回收优化算法(COA)缩短系统响应时间,适用于资源受限环境下开发嵌入式实时应用。
In view of many fragments formed by the strategy of WebitOS on allocation and collection of memory space,a memory-allocating optimization algorithm(AOA) and memory-collecting optimization algorithm(COA) in memory space were put forward in the process of memory management.To avoid the memory fragments,a threshold was set in AOA during memory allocation;and continuous address free memories was combined into a free block in COA during memory collection,which could improve utilization ratio of memory and reduce...
出处
《辽东学院学报(自然科学版)》
CAS
2009年第2期142-145,共4页
Journal of Eastern Liaoning University:Natural Science Edition