RFRTOS - based on the Linux QoS of real - time operating system
- Author
- ZhaoHuiBin
- Advisor
- SunYuFang
- School
- Institute of Software
- Major
- Computer Software and Theory
- Classification
- TP316 Operating system
- Degree
- Doctoral dissertation
- Year
- 2003
- Downloads
- 787
- Citations
- 2
- Linux
- Real - time operating system
- Priority inversion
- Priority inheritance protocol
- Priority hoisting agreement
- Rate Monotonic
- Mutex
- Semaphore
- Resource Core
- Non - exclusive mutex
- clock management
- Resource reservation
Abstract
Real-time operating system is different from the general-purpose operating system that the correctness of the system depends not only on the correctness of the results, and also depends on the timeliness of the output time. Traditional real-time operating system is generally hard real-time system must meet time correctness of the correctness of the results of all calculations and output, otherwise there might be disastrous consequences, such system is suitable for some special occasions, such as medical equipment, nuclear power plants control, aerospace. On the other hand, the development of computers and peripheral resources available increasing number of the function of the past can only be implemented on a general-purpose operating system platform, embedded systems, while some desktop systems also began to have some of the real-time requirements. Thereby establishing a new real-time field - soft real-time operating system. Soft real-time applications on time correctness traditional hard real-time demanding occasional timeout is acceptable, but requires a more extensive feature support, including the extended functionality of the file system, network user interface and database system. Soft real-time compared with traditional real-time resource management, seems to be rather loose, resulting in many cases, the real-time characteristics difficult embodied. This study focuses on the characteristics of real-time systems and Linux to meet the needs in the field of domestic industrial embedded, multimedia, combines some of the advantages of hard real-time and soft real-time oriented QoS (Quality of Service) concept of real-time operating system services. QoS of real-time operating systems can not only provide the same system with general-purpose operating system calls and services, and on the development approach is much simpler than the traditional real-time operating system. At the same time, such as clock management, interrupt management and process scheduling system accuracy close to traditional real-time operating system. Based on this idea, we have developed a real-time operating system based on the Linux RFRTOS (RedFlag Real-Time Operating System). I in process development RFRTOS, mainly in the following three areas studied preemptible: □ raise core. With conventional through the restrictions of the system service is a real-time kernel to achieve rapid response, QoS should be in real time to maintain the integrity of the system services, in this case, the core can seize the accuracy has become one of the more important indicators of the system service of the decision accuracy This is RFRTOS research focuses, RFRTOS achieved by following a process of interrupt service accuracy seize core: ● core services. Linux-based macro-core design philosophy, core services, including interrupt processing, the bottom half, and signal processing core space, process space, and by default, have the highest level of running. The design idea due to the higher efficiency of the system as a whole, to achieve a simple and generally accepted in the design of a general-purpose operating system; However, in real-time applications, such the rough core services granularity will cause unpredictable task delay. And visible on the process of core services and background system service scheduling, increase the controllability of the core operation, improve response accuracy. ● the mutex semaphore-based and priority inheritance protocols (Priority Inheritance Protocol, PIP) or priority hoisting protocol (Priority Ceiling Protocol, PCP) support. Mutually exclusive conditions may cause the priority inversion phenomenon, caused by the delay of the high priority task can not be expected, while the the CAS software doctoral dissertation RFRTOS eleven QoS real-time operating system based on Linux-based the semaphore mutex and based on the mutually exclusive The priority inheritance protocol of the lock mechanism or priority hoisting protocol can solve this problem. Scheduling the timing of the interrupt handler class refinement. Macro core design principles lead to Linux is the core of service-level scheduling timing, that is, if there is an unfinished system service is not scheduling. And RFRTOS on the basis of the core service process, to further increase the timing granularity of scheduling, external event for scheduling the trigger point, each time in the interrupt processing returns to determine whether the need scheduling, interrupt processing level scheduling timing refinement, increase the accuracy of the system response. Port clock management accuracy refinement. The pulse of the clock as the operating system, is an important basis for the operation of the coordination system, general system clock frequency is fixed. Faster clock frequency can improve the precision of service, but will increase the burden on the system. RFRTOS the dynamic clock accuracy adjusted according to the application requirements to resolve the contradictions of the system accuracy and the additional load. Mouth more than scheduling strategy support and resources for the core framework. Between real-time applications and non-real-time applications, real-time applications, and even among the non-real-time applications focus on system scheduling there may be differences in The single scheduling mechanism is difficult to meet the many requirements of the application, increase flexible scheduling mechanism to support become One of the problems of modern operating system must be considered. RFRTOS under the core ideology of Carnegie mellon University of real-time multimedia laboratory resources to build a multi-priority-based scheduling policy support scheduling mechanism. RFRTOS provides scheduling resource-based perspective, changing the concept of traditional operating systems, service-oriented, Qos service support scheduling interface. In addition, in development RFRTOS, we achieved a read lock mechanisms, and non-exclusive lock priority inheritance protocol, expanding the scope of the basic priority inheritance protocol improved mutex efficiency. We confirmed through testing the improved rationality the currently RFRI is, 05 have been as a red flag company's products into the market sales.
Table of contents
Abstract 3-5
Abstract 5-8
catalog 8-11
Chapter 1 Introduction 11-15 <br / > 1.1 Background 11-12
1.2 thesis work 12-13
1.3 papers organizational structure 13-15
Chapter 2 real-time systems 15-27
2.1 real-time system definition and classification the 15-16
2.2 real-time system characteristics 16-19
2.2.1 interrupt and the clock interrupt 16-17
2.2.2 process scheduling and process data structures 17-19
2.2.3 memory management mechanism 19
2.3 real-time system design problem 19-20
2.4 several commonly used commercial operating systems 20-26
2.4.1 VxWorks 20-22 < br /> 2.4.2 LynxOS 22-23
2.4.3 pSOS 23-24
2.4.4 QNX / Neutrino 24-26
2.5 Chapter Summary the 26-27
Chapter 3 RFRTOS-Linux-based real-time scheme 27-40
3.1 Linux real-time extension of the research status 27-33
3.1.1 RTLinux and RTAI hard real-time programs 27-30
3.1.2 Soft real-time program 30-33
3.2 RFRTOS-QoS systems support 33-39
3.2.1 QoS system the design goals nbsp 33-34
3.2.2 RFRTOS,; facing 34-36
3.2.3 the problem 36-37
3.2.4 RFRTOS, improved 37-39
3.3 Summary 39-40
Chapter 4 real-time clock management system 40-55
4.1 Linux clock system 41-44
4.1.1 immediately interrupt service 41-42
4.1.2 scheduling interrupt service 42
4.1.3 Linux timer service 42-44
4.2 RFRTOS real-time, core clock on 44-50
4.2.1 RFRTOS, clock interrupt and Agent Design the 44-48
4.2.2 the heap structure-based real-time core clock 48-50
4.3 Experimental 50-54
4.3.1 real-time core clock with Linux original core clock accuracy of contrast 50-51
the 4.3.2 clock processing overhead 51-53
4.3.3 using the heap the core clock and linear the efficiency of the list 53-54
4.4 Summary 54-55
Chapter 5 of the process of core services 55-70
5.1 core process concept 56-58
5.2 interrupt the process of the 58-62
5.2.1 interrupt the process of the realization 58-60
5.2.2 interrupt process further ideas: hard real-time integration half the service process of 60-62
5.3 half of the 62-65
5.3.1 concept 62
5.3.2 bottom half of the process of 62-64
5.3.3 signal process technology 64-65
the 5.4 experiment 65-68
5.5 Summary 68-70
Chapter 6 mutex the 70-94
6.1 Linux mutex 70-75
6.2 priority inversion problem and solutions the 75-81
6.2.1 priority inversion the the 75-76
6.2.2 basic priority inheritance protocol 76-77
6.2.3 non-exclusive lock on the priority inheritance protocol the mutex improved 77-81
6.3 - strong binary semaphore mutex nbsp data structure; 81-90
6.3.1 81-83
6.3.2 correlation function 83-90
6.4 Experimental 90-92 < br /> 6.4.1 Basic PIP agreement 90-91
6.4.2 non-exclusive lock on the PIP 91-92
6.5 Summary 92-94
Chapter 7 scheduling improvements 94-129
7.1 real-time scheduling algorithm the task model
7.1.1 94-103 94-95
7.1 .2 real-time periodic task scheduling algorithm 95
7.1.3 dynamic priority real-time scheduling algorithm 95-96
7.1.4 fixed priority real-time scheduling algorithm 96-99
7.1.5 Real-time non-periodic task scheduling algorithm 99-103
7.2 support priority-based multi-scheduling policy 103-105
7.3 the scheduling granularity improve 105-111
7.3.1 Linux scheduling features the 105-108
7.3.2 RFRTOS, scheduling granularity improvements 108-111
7.4 resource core 111-118
7.4.1 concept 111-113
7.4.2 achieve 113-118
7.5 test 118-128
7.5.1 scheduling timing 118-121
7.5.2 Real-time parameters 121-122
7.5.3 scheduling strategy 122-128
7.6 Summary 128-129
Chapter 8 summarizes 129-135
8.1 of this thesis work 129 - 133 the
the 8.1.1 clock management mechanism segmentation and dynamic precision implementations the 129-130
8.1.2 system core service process improvements and seize the core to achieve 130-131
8.1.3 based on strong binary semaphore mutex lock mechanism improved 131-132
8.1.4 scheduling improvements 132-133
8.2 real-time systems research and development work outlook 133-135
Reference 135-141
during the study for a degree and accepted papers 141-142
Acknowledgements 142
Related dissertations
- Research on Real Time Performance of Embedded Operating System
- Research on Fpga-based Hardware Mutex Technology of Real-Time Operating System
- Research on Linux Operating System’s Embedded Mechanism and Fast Start
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- Research and Design of Embedded Building Security System
- The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Study on Embedded Data Acquisition System Application
- Embedded Software Design of AC Field Detection Instrument Based on ARM
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
- Design of Industrial Ethernet Motion Controller Based on ARM
- Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
- The software design of intelligent control Home Furnishing gateway based on ARM11
- The System Design and Implementation of Smart Home Control Terminal Based on Linux
- Movement Gait Control Research of Six Feet Bionic Robot