嵌入式Linux实时性方法
来源期刊:中南大学学报(自然科学版)2004年第4期
论文作者:胡志刚 MAHAMMED M E 余正军 吴运星
文章页码:638 - 642
关键词:嵌入式Linux;实时;进程调度;内核
Key words:embedded Linux; real-time; process schedule; kernel
摘 要:针对Linux进程调度策略存在中断封锁时间过长、非抢占式的Linux内核,以及耗尽式的、机会均等的调度方式这3个不利于实现实时性的不足,提出提高嵌入式Linux实时性的方法,实现实时Linux系统(RTLinux)的调度算法及其他部分功能,并采用LMbench测试系统对改进的RTLinux和通用Linux的上下文切换时间进行对比测试。研究结果表明,改进的RTLinux有效地提高了嵌入式Linux的实时性。
Abstract: Based on the characteristic and the applied situation of embedded system, the Linux schedule strategy and the flowchart of the schedule function are analyzed thoroughly. Aimed at the three disadvantages in Linux task scheduling method, i.e. the time of the interruption is too long, the kernel is not preemptive and the schedule strategy is exhausted and has equal opportunity, a method is proposed to improve the real-time performance of the embedded Linux system. A real-time Linux (RTLinux) scheduling algorithm and part of RTLinux functions are designed and realized. By using the LMbench testing system, the context switching time of improved RTLinux and general Linux are tested and compared. The result shows that the offered method improves the real-time performance of the embedded Linux.