Research on Real-time Scheduling Algorithm and Resource Management of Real-time System
- Author
- ZhouBenHai
- Advisor
- WangXiBo
- School
- Shenyang University of Technology
- Major
- Computer Software and Theory
- Classification
- TP316.2 Real-time operating system
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 283
- Citations
- 7
Abstract
Real-time systems are mainly designed to satisfy the timing requirements from the real word application. A real-time system concerns not only the logic correctness of the computing results, but also the time when the results come out. The process must be completed before deadline, or the system will failed. Otherwise, in real-time system, priority inversion phenomenon may occur frequently under the condition of multiple tasks share resource, and it will lead to system failure. So task scheduling and resource management is the most important part.This paper useμC/OS-II as the reaserch object.μC/OS-II has a preemptive scheduling and free code kernel.μC/OS-II assigns each task for an unique priority, but it does not allow the kernel to have multiple tasks at the same priority. In practical application, it is not a good logical design. Aiming at this problem, by modifying the real time kernelμC/OS-II, this paper advanced round-robin scheduling to deal with the same priority tasks. By experiment verification, the modified kernel can support the tasks at the same priority, and it can remainμC/OS-II’s preemptive property.For real-time kernel adopting preemptive priority policy, priority inversion phenomenon may occur frequently under the condition of multiple tasks share resource. Some unpredictable errors of real-time application system perhaps derive from this phenomenon. This paper expounds the cause of priority inversion problem and the effect for real-time system performance firstly, and then, three approaches named as scheduler lock , priority ceiling protocol and priority inheritance protocol are proposed to be used inμC/OS- II for reducing the priority inversion phenomenon. By experiment verification, the three methods reduce priority inversion effectively inμC/OS- II. Finally, the performance of the three methods had been compared and analyzed.
Table of contents
Abstract 5-6
Abstract 6-11
1 Introduction 11-19
1.1 of this paper proposed background 11-16
1.1.1 Overview of real-time systems 11-12
1.1.2 Real-time system characteristics 12-13
1.1.3 Real-time system applications 13-14
1.1.4 several common real-time operating system 14-15
1.1.5 Real-time scheduling system 15-16
1.2 research status 16-18
1.2.1 for a single type of task scheduling 16-17
1.2.2 mixed for all types of real-time task scheduling 17-18
1.3 In this paper, the main research work 18-19
2 real-time scheduling theory and methods 19-34
2.1 real-time scheduling basic theory 19-22
2.1.1 Basic concept 19
2.1.2 real-time tasks classification 19-20
2.1.3 common task model 20-22
2.2 real-time scheduling algorithm 22-30
2.2.1 static scheduling algorithm 22-25
2.2.2 dynamic scheduling algorithm 25-28
2.2.3 various types of real-time hybrid scheduling tasks 28-30
2.3 real-time operating system and its key technology 30-34
2.3.1 The concept of real-time operating system 31
2.3.2 Real-time operating system architecture 31
2.3.3 real-time operating system measure 31-32
the
characteristics 2.3.4 real-time operating systems, real-time kernel 32-34
3 μC / OS-II Kernel Analysis 34-45
3.1 μC / OS-II structure outlined 34
3.2 μC / OS-II kernel characteristics 34-36
3.3 μC / OS-II kernel task management 36-45
3.3.1 user task structure 36-37
3.3.2 task status 37-39
3.3.3 task control block 39-40
3.3.4 task to create 40-42
3.3.5 task scheduling 42-43
3.3.6 task Ready Table 43-45
4 μC / OS-II kernel improvements 45-53
4.1 μC / OS-II in task scheduling characteristics 45-46
4.2 μC / OS-II kernel structure improvements 46-51
4.2.1 μC / OS-II kernel structure 46
4.2.2 of the task control block (TCB) extension 46-47
4.2.3 on the task control block initialization OS_TCBInit () function improvements 47-49
the
Improvement of 4.2.4 on the creation of the task function OSTaskCreateExt () 49
4.2.5 on task scheduling function improved 49-51
4.3 system extended round-robin scheduling algorithm schedulability analysis 51-53
5 μC / OS-II shared resource management improvements 53-60
5.1 priority inversion problem analysis 53-54
5.2 to inhibit the priority inversion strategy 54-56
5.2.1 priority ceiling protocol 54-55
5.2.2 priority inheritance protocol 55-56
5.3 μC / OS-II inhibition priority inversion 56-60
5.3.1 μC / OS-II scheduler locking 56
5.3.2 μC / OS-II priority ceiling protocol 56-57
5.3.3 μC / OS-II priority inheritance protocol to achieve 57-60
6 Experimental results and analysis 60-67
6.1 μC / OS-II with the priority task of the round-robin scheduling 60-63
6.2 μC / OS-II inhibition of priority inversion 63-67
6.2.1 μC / OS-II in priority inversion 63-64
6.2.2 scheduler lock Suppression priority inversion 64-65
6.2.3 μC / OS-II priority ceiling protocol implementation 65
6.2.4 μC / OS-II in the priority inheritance protocol to achieve 65-67
7 Conclusion 67-68
the
References 68-71
learn research 71-72
Acknowledgements 72
Related dissertations
- Embedded Operating System Priority Inversion Real-time Design Patterns and Method of Implementation and Research
- Research and Implementation of Embedded Real-time System μC/OS-Ⅱ Kernel Performance Improvement
- Research on the Earliest Deadline First Real-Time Scheduling Algorithm
- Design Mode and Implement Approach Study for Solving Inversion Problem in μC/OS-Ⅱ
- The Real-Time Analyzing and Improving for an Embedded Operating System
- Research and Implementation of the real - time thread library
- The Development of Configuration Software for Monitoring and Controlling Based on C#
- Design and Implementation of Static Gesture Recognition System Based on FPGA
- Energy-efficient Real-time Scheduling for Multi-core and Multiprocessor System
- Modal Analysis Fast Calculation Method Research and Application on Heavy Truck
- Research on Hard Real-time Multi-core Architecture Based on Shared Sram Automotive Control Applications
- Design and Implemenation of Real-time Monitoring System Based on Virtual Instrument
- Implementation of Real-Time Test System for Inertial Measurement Units Based on LabVIEW
- Formal Modeling and Analysis of Cyber Physical System
- Real Time Face Feature Detection System Based on CPU+GPU Cluster
- Design and Realization of a Dynamic Memory Manager for Embedded Real-time Systems
- Research of Task Scheduling Algorithm for Soft Real-time System Based on Feedback Mechanism
- The Embedded Real-time Operating System μC/Os-Ⅱ and Research of Priority Reverse Problems
- Aspect-Oriented Testing Approach for The Real-time Characteristic of Real-Time Cyber-Physical System
- Research on Real-time Elastic Task Scheduling Algorithm Based on Feedback Mechanism