摘要
实时多任务操作系统相对于其他操作系统而言,需要有更快的对外部事件的反应能力。因此,选择一种合适 的任务调度算法非常重要。本文分析了时间片轮转的优先级抢占任务调度算法,以及控制共享资源访问的信号量机制。 如果多个任务访问共享资源,可能会导致优先级反转。最后,提出了解决优先级反转的途径:优先级继承。试验证明,该方 法行之有效。<正>1 INTRODUCTION pro印se an approaeh to solvi呢priority inverslon,whieh一s of priority inheritanee. Modern real--tirne systems are based on the eomple- menta斗ooneepts of multitaski眼and intertask eornmu扭ea- tions仁,〕.In eom俘rison with
A real-time multitasking operating system requires much more rapid response to external events than other operating systems. So it is very important to select an appropriate task scheduling algorithm. In this paper, a round-robin preemptive priority scheduling algorithm is analyzed, which will lead to priority inversion when multiple tasks seeking access to shared resources use the semaphore mechanism. Priority inheritance is proposed to resolve the problem whose efficiency and practicability have been proved in our practice and examination.
出处
《计算机工程与科学》
CSCD
2005年第2期62-64,共3页
Computer Engineering & Science
基金
国家863计划资助项目(863-306-ZT05-02-4)