期刊文献+

一种改进的优先级继承协议及其算法研究 被引量:3

An Improved Priority Inheritance Protocol and Its Algorithm
下载PDF
导出
摘要 优先级反向是实时系统中由于任务间需要共享资源以及同步而引起的高优先级任务被低优先级任务阻塞的现象。优先级反向使得高优先级任务的执行时间无法预测,增加了实时系统的不确定性。早期的扩展协议较好地解决了优先级反转问题,但同时也存在着自身的不足。针对这些缺陷,在深入研究相关协议的基础上,该文提出了一种改进的优先级继承协议。该协议中信号量按预定义的非循环固定顺序获取,以防止死锁发生,设置超时保护机制,避免任务在获取信号量时长时间的阻塞,给出了关于该协议的分析,并在实时Linux上实现了基于该协议的算法。 Priority reverse is a kind of phenomenon that the higher priority task is blocked by the lower priority task since they are using the same sources in real time system. Priority reverse makes it is impossible to predict the execution time of the high priority task, and increases the indeterminacy of real time system. Although early priorities solved priority reverse, there are some limitations. To address these limitations, this paper gives rise to an improved priority inheritance protccol. In the improved protocol, the semaphores are acquired according to a fixed predetermined non-revolving sequence to avoid dead lock. Protocol establishes overtime protection mechanism to avoid prolonged block when tasks are acquiring semaphores. It analyzes the property of the protocol, on the bases of which an implementation under Linux is described. Experiment results show this protocol can perform efficiently.
出处 《计算机工程》 CAS CSCD 北大核心 2007年第8期41-44,共4页 Computer Engineering
基金 国家"863"计划基金资助项目(2002AA1Z2306 2004AA1Z2351) 电子信息产业发展基金资助项目(XDJZ--0412-03) 粤港关键领域重点突破资助项目(20054981)
关键词 实时计算 优先级反转 优先级继承协议 优先级上限协议 Real-time computing Priority reverse Priority inheritance protocol Priority ceiling protocol
  • 相关文献

参考文献6

  • 1Babaoglu O, Schneider F B. Priority Inversion and Its Prevention[J].Journal of Real-time Systems, 1993, 16(5): 285-303.
  • 2Zhao W, Ramamritham K. Preemptive Scheduling under Time and Resource Constraints[J]. IEEE Trans. on Comput., 1987, 36(8):203-208.
  • 3Sha L, Rajkumar R, Lehoczky J P. Priority Inheritance Protocols: An Approach to Real-time Synchronization[R]. Pittsburgh, Pennsylvania:Computer Science Department, Carnegie-mellon University,Technical Report: CMU-CS-87-181. 1987.
  • 4Goodenough J B, Sha L. The Priority Ceiling Protocol: A Method for Minimizing the Blocking of High Priority Ada Tasks[C]//Proc. of the 2^nd International Workshop on Realtime. 1988.
  • 5赵伟庆,周群彪,刘健波,游志胜,陈正茂.实时嵌入式操作系统QNX环境下驱动程序研究[J].四川大学学报(自然科学版),2003,40(3):463-466. 被引量:5
  • 6郭长国,周明辉,王怀民,许勇.一个基于多线程的优先级继承协议锁的算法研究[J].计算机研究与发展,2002,39(12):1550-1555. 被引量:5

二级参考文献9

共引文献8

同被引文献22

  • 1丛伟,王勇,于宏坤.用Vx Works的信号量机制实现任务同步[J].微机发展,2004,14(7):43-44. 被引量:3
  • 2李光成,褚伟.基于μC/OS-II嵌入式实时系统的优先级倒置分析[J].计算机技术与发展,2007,17(7):98-101. 被引量:4
  • 3SHA L,RAJKUMAR R,LEHOCZKY J P.Priority Inheritance Protocols:An Approach to Real-time Synchronization. Pittsburgh,Pennsylvania:Computer Science Department[R], Carnegiemellon University,Technical Report:CMU-CS-87-181.1987
  • 4GOODENOUGH J B,SHA L.The Priority Ceiling Protocol.. A Method for Minimizing the Blocking of High Priority Ada Tasks[C]//Proc. of the second Intem:ational Workshop on Realtime. 1988
  • 5Jean J.Labrosse. MicroC/OS-Ⅱ The Real-Time Kernel Second Edition.邵贝贝译[M].北京:北京航空航天大学出版社,2003
  • 6周绪川.一种解决μC/OS中优先级反转问题的方案[J].微计算机信息,2007(05Z):58-59. 被引量:2
  • 7毛德操 胡希明.Linux内核源代码情景分析[M].杭州:浙江大学出版社,2001..
  • 8毛德梅,汪明珠.μC/OS_Ⅱ中任务优先级反转问题研究[J].安徽理工大学学报(自然科学版),2007,27(3):39-42. 被引量:1
  • 9Tang Xiaoming,Zhu Zhiqiang. A Safety Critical Operating System towards Partitioning Architecture [ C ]//Proceedings of In- ternational Conference on Pacific Asian Aviation and Aerospace. [ s. l. ]: [ s. n. ] ,2010.
  • 10Babaoglu O,Schneider F B. Priority Inversion and Its Prevention [ J ]. Journal of Real - time Systems, 1993,16 ( 5 ) : 285 - 303.

引证文献3

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部