基于嵌入式Linux操作系統(tǒng)的實時性研究
[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系統(tǒng)實時性探討[J];重慶大學學報(自然科學版);2005年03期
3 劉云生;方丹;;嵌入式實時操作系統(tǒng)的內核搶占機制研究[J];計算機工程;2005年24期
4 袁臻,李新明;實時Linux的研究與實現[J];計算機應用研究;2000年11期
5 范質堅;Linux在嵌入式系統(tǒng)中的應用[J];計算機與現代化;2000年06期
6 朱響斌,涂時亮;Linux的實時性能測試[J];微電子學與計算機;2004年11期
7 劉文峰,李程遠,李善平;嵌入式Linux操作系統(tǒng)的研究[J];浙江大學學報(工學版);2004年04期
相關碩士學位論文 前7條
1 廖永剛;Linux操作系統(tǒng)實時化技術研究[D];電子科技大學;2005年
2 謝強;基于LINUX的嵌入式操作系統(tǒng)實時性研究[D];西安電子科技大學;2007年
3 賴娟;Linux內核分析及實時性改造[D];電子科技大學;2007年
4 于曉鋒;嵌入式實時Linux系統(tǒng)的構建[D];電子科技大學;2008年
5 肖振華;嵌入式Linux操作系統(tǒng)的實時性研究[D];太原科技大學;2008年
6 舒志文;嵌入式Linux操作系統(tǒng)實時性的研究與實現[D];華中科技大學;2007年
7 侯峰;嵌入式Linux的實時化改造及其在故障錄波中的應用[D];西南交通大學;2010年
本文編號:2385663
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2385663.html