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
摘要: 分析uC/OS-II内核的超时等待机制,证实在一定情况下超时时间间隔不准确,在时间间隔到期的情况下,内核仍有可能返回成功,不符合一般的操作系统原理,且超时等待机制在有附加的挂起操作时,处理效率低下。指出uC/OS-II内核的超时等待机制不完善的原因,对不足之处提出改进方法。
关键词:
超时等待,
资源,
挂起,
内核
CLC Number:
HAN Ming-feng; LI Xiao-bin; ZHENG Yong-zhi. Analysis and Improvement of Waiting-timeout Mechanism in uC/OS-II Kernel[J]. Computer Engineering, 2009, 35(7): 259-260,.
韩明峰;李小滨;郑永志. uC/OS-II内核超时等待机制的分析与改进[J]. 计算机工程, 2009, 35(7): 259-260,.