The real-time performance of Linux is analyzed. Aiming at the technical obstacles in real-time applications, the improvement measures for improving the real-time performance of Linux are proposed from three aspects based on the reference of relevant research. In order to improve the response time accuracy of embedded applications, two methods of refining the Linux clock granularity are proposed; in order to enhance the responsiveness of the system kernel to real-time tasks, the preemptibility of the Linux kernel is enhanced by inserting preemption points and modifying the kernel; in order to ensure the time limit requirements of hard real-time tasks, the original Linux single run queue is changed to a dual run queue, and the hard real-time tasks are placed in a queue separately, and the MLF scheduling algorithm is used to replace the original kernel FIFO scheduling algorithm. Keywords: Linux; Real-time; Scheduling strategy; Preemption Abstract: The real-time performance of Linux is analyzed, and its disadvantage is pointed out when applied to the embedded system. Inspired mostly by some real time improvements of Linux, this article gives rise to three aspects to improve the real-time capability of Linux. To improve the time precision for embedded applications, two methods for creating accurate timer are proposed. To enhance the response ability of real-time task, inserting preemption points and the preemption kernel methods are adopted to enhance the preemptability of Linux kernel. To ensure the requirements of the hard real-time tasks, a double run queue is used instead of the original single run queue, these tasks are organized in one run queue and MLF schedule strategy is used for them.Key word: Linux;Real-time;Schedule strategy;Preemption
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore