The Embedded Real-Time Operating System (RTOS) is the most important basic software platform for the embedded system, so the design and implementation of RTOS become the focus of the research. After analyzing some design problems and the requirements of embedded system application, a scheme of MRTkernel has been posted for the tiny control system. MRTkernel has the following characteristics: based on micro kernel architecture, adopts preemptive priority based scheduling algorithm, supports up to 256 tasks, has complete system service, POSIX compatible, scalable and portable.In the process of developing MRTkernel, the bitmap algorithm has been improved and optimized to meet the requirements of application, so it can support up to 256 tasks without losing of the performance, which enhance the system performance. Aging algorithm was designed and implemented for solving the starvation problem and priority ceiling policy is applied to solve the priority inversion problem, which are not solved by most of RTOSs. |