The main cycle of the procedure of common 8-bit microcontrollers is executed in order. So its requirement for real time is higher. The procedure needing priority processing can’t be placed in the main cycle. If do so, it may result in the worse readability and portability. In order to solve this problem, this paper introduces a method that forms the inalienable priority core.%普通的8位单片机的程序在主循环里一般都是顺序执行,主循环中有时候执行较长,有时候又较短,导致有些实时性要求较高,需要优先处理的程序无法放在主循环里运行,如果放在中断里又会增加中断的内容,同时也会影响整个程序的架构,使程序的可读性和移植性变差。鉴于此,在时间片内核的基础上引入优先级的调度,形成了不可剥夺的优先级内核。
展开▼