作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (7): 259-260,. doi: 10.3969/j.issn.1000-3428.2009.07.090

• 开发研究与设计技术 • 上一篇    下一篇

uC/OS-II内核超时等待机制的分析与改进

韩明峰,李小滨,郑永志   

  1. (烟台东方电子信息产业股份有限公司,烟台 264000)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-04-05 发布日期:2009-04-05

Analysis and Improvement of Waiting-timeout Mechanism in uC/OS-II Kernel

HAN Ming-feng, LI Xiao-bin, ZHENG Yong-zhi   

  1. (Yantai Dongfang Electronic Information Industry Co. Ltd., Yantai 264000)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-04-05 Published:2009-04-05

摘要: 分析uC/OS-II内核的超时等待机制,证实在一定情况下超时时间间隔不准确,在时间间隔到期的情况下,内核仍有可能返回成功,不符合一般的操作系统原理,且超时等待机制在有附加的挂起操作时,处理效率低下。指出uC/OS-II内核的超时等待机制不完善的原因,对不足之处提出改进方法。

关键词: 超时等待, 资源, 挂起, 内核

Abstract: This paper analyzes the waiting-timeout mechanism of uC/OS-II kernel from source code. It indicates waiting-timeout of uC/OS-II is not correst in some cases. The kernel can return success while it is time out. System efficiency is low if kernel waiting-timeout mechanism has additional suspension operation. The reason why waiting-timeout mechanism of uC/OS-II kernel is not perfect is analyzed. A method is advanced to resolve these problems.

Key words: waiting-timeout, resource, suspend, kernel

中图分类号: