基于嵌入式Linux操作系统的实时性研究
[Abstract]:Real-time operating system (RTOS) is the soul of embedded system. It has been widely used in embedded fields such as communication, industrial control, military defense and so on. The general operating system only pays attention to the average performance of the system. The average response time for all tasks is critical for the system as a whole. Compared with the general operating system, the correctness of the real-time operating system depends not only on the logical result of the calculation, but also on the time when the result is generated. As one of the open source software, the Linux operating system has the advantages of open source, free of charge, strong compatibility with Unix, network, clipping kernel, supporting various architectures, stable performance and so on. Although Linux2.6 provides some support for real-time processing, such as O (1) scheduler, preemptive kernel and so on, it is a timesharing operating system and can not meet the requirements of most embedded real-time systems. Therefore, in order for the Linux operating system to meet the real-time requirements of embedded systems, the Linux2.6 kernel must be optimized in real time. Based on the research of Linux2.6 kernel, this paper analyzes the clock mechanism, process scheduling mechanism and kernel synchronization mechanism of Linux2.6 kernel. In order to improve the real-time performance of the system, this paper proposes two improved schemes. In order to solve the problem that the clock granularity of Linux2.6 kernel is too coarse, an improved Linux real-time scheme based on APIC clock is proposed. By making less changes to APIC clock, the system achieves the clock precision of microsecond level. In order to solve the problem that a large number of critical areas of spin lock protection can not be preempted in Linux2.6 kernel, a scheme of replacing spin lock with mutex in kernel is proposed, so that the real-time task can get timely response. The real-time performance of the system is improved. Finally, through the test, the Linux2.6 kernel after two improved schemes has been improved greatly in real time, which can meet the real-time requirements of embedded system.
【学位授予单位】:长安大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP316.81;TP368.1
【参考文献】
相关期刊论文 前7条
1 叶超;郭立红;邹荣士;;Linux2.4与Linux2.6内核调度器的比较研究[J];电子技术应用;2006年05期
2 蒋溢,李琳皓,陈龙,熊安萍;Linux系统实时性探讨[J];重庆大学学报(自然科学版);2005年03期
3 刘云生;方丹;;嵌入式实时操作系统的内核抢占机制研究[J];计算机工程;2005年24期
4 袁臻,李新明;实时Linux的研究与实现[J];计算机应用研究;2000年11期
5 范质坚;Linux在嵌入式系统中的应用[J];计算机与现代化;2000年06期
6 朱响斌,涂时亮;Linux的实时性能测试[J];微电子学与计算机;2004年11期
7 刘文峰,李程远,李善平;嵌入式Linux操作系统的研究[J];浙江大学学报(工学版);2004年04期
相关硕士学位论文 前7条
1 廖永刚;Linux操作系统实时化技术研究[D];电子科技大学;2005年
2 谢强;基于LINUX的嵌入式操作系统实时性研究[D];西安电子科技大学;2007年
3 赖娟;Linux内核分析及实时性改造[D];电子科技大学;2007年
4 于晓锋;嵌入式实时Linux系统的构建[D];电子科技大学;2008年
5 肖振华;嵌入式Linux操作系统的实时性研究[D];太原科技大学;2008年
6 舒志文;嵌入式Linux操作系统实时性的研究与实现[D];华中科技大学;2007年
7 侯峰;嵌入式Linux的实时化改造及其在故障录波中的应用[D];西南交通大学;2010年
本文编号:2385663
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2385663.html