首页 | 官方网站   微博 | 高级检索  
     

Buddy算法的μC/OS-Ⅱ高可靠内存管理方案
引用本文:国庆波,郭兵,沈艳.Buddy算法的μC/OS-Ⅱ高可靠内存管理方案[J].单片机与嵌入式系统应用,2011,11(7):30-33.
作者姓名:国庆波  郭兵  沈艳
作者单位:1. 四川大学计算机学院,成都,610064
2. 电子科技大学
基金项目:“863”计划基金资助项目(2008AA01Z105)
摘    要:针对现有μC/OS-Ⅱ内存管理方案分配内存不灵活、可靠性不高的特点,提出一种适用于μC/OS-Ⅱ增强内存管理可靠性的方案.该方案借鉴Buddy算法的思想,将可用内存划分为一系列2的幂次方规模大小的内存块,申请小块内存得不到分配时可以将大块内存块平分后得到满足.回收内存块时,地址连续的相同大小的内存块可以合并成大内存块,...

关 键 词:可靠性  Buddy算法  内存管理  μC/OS-Ⅱ  嵌入式操作系统

Strategy of Higher Reliability Memory Management in μC/OS- Ⅱ with Buddy Algorithm
Guo Qingbo,Guo Bing,Shen Yan.Strategy of Higher Reliability Memory Management in μC/OS- Ⅱ with Buddy Algorithm[J].Microcontrollers & Embedded Systems,2011,11(7):30-33.
Authors:Guo Qingbo  Guo Bing  Shen Yan
Affiliation:Guo Qingbo1,Guo Bing1,Shen Yan2(1.School of Computer Science & Engineering,Sichuan University,Chengdu 610065,China,2.University of Electronic Science & Technology of China)
Abstract:This paper proposes a highly reliable strategy of memory management for μC/OS - II which originally has a low reliable and inflexible strategy of memory management. The new strategy divides the unused memory into a series of blocks whose size are regulatory power of 2. If the small memory blocks can't meet the allocation requirement, it gets a half block of bigger memory blocks. When the memory block is retrieved, two memory blocks of same size and contiguous addresses can be combined into one bigger memory block. What's more, the strategy uses the index array to locate the needed memory block quickly. Comparative experiments show that the relia bility of the new strategy impoves 4 times higher than the original strategy and the memory management is more flexible.
Keywords:reliability  Buddy algorithm  memory management  μC/OS- II  embedded operating system
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号