Design Mode and Implement Approach Study for Solving Inversion Problem in μC/OS-Ⅱ
- Author
- GuoYang
- Advisor
- WangXiBo
- School
- Shenyang University of Technology
- Major
- Applied Computer Technology
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 173
- Citations
- 1
- Real-time System
- embedded system
- μC/OS-Ⅱ
- Prioriy Inversion
- Priority Inheritence
- Priority Ceiling
- Mutex
Abstract
In project practice, embedded system often has very strong timely request, needs the embedded operating system to provide a better real-time support. Therefore, embedded operating system is generally a real-time operating system. Along with the application domain of embedded technology continuously expansion, Real-Time Operating System platform used to develop embedded application has obtained more and more widespread application, and the theories and technical problems related with Embedded Operating System have also become hot spot of research and development. Especially, to ensure real-time characteristics as well as resources effective management in Embedded Operation System have become the most important and the most active research topic in Operation System research domain. In preemptive and multitasking Real-Time Operation System, as a result of task subsequent execute as well as uses of shared resources, inevitable exists the danger of priority inversion which can affect the response time of high priority task. If does not take effective measures, infinite priority inversion may occur, application will collapse;At the same time, priority inversion is the unpredictable mistake’s origin in application system. Therefore, it is crucial to alleviate priority inversion on Real-Time Operation System when analyzing and designing Embedded Real-Time System.In the paper, μC/OS-Ⅱ— a free code, preemptive and multitasking Real-Time Operation System has been selected as study object. Preemptive scheduling Kernel of μC/OS-Ⅱ has been anatomized;the reason and the influence produced by priority inversion phenomena have been analyzed detailed. Design models, being nominated as priority inheritence protocol and priority ceiling protocol which used to solve priority inversion, are researched and analyzed deeply. On the basis of above, application limit of priority inheritances protocol as well as application availability of priority ceiling protocol in μC/OS-Ⅱ are proposed and proved. Combined with μC/OS-Ⅱ’s characteristics, definition of resources ceiling priority is improved;experimental model is designed;the solution scheme to solve priority inversion problem in uC/OS-II, which is similar to the priority ceiling protocol, is realized by employ μC/OS-Ⅱ’s Mutex signal mechanism. The experiment simulation result indicated that, on the precondition of ensuringmutex visiting of the shared resources, the proposed approach limits the occurrence of priority inversion on one level, and alleviates the priority inversion phenomenon occurrence in uC/OS-n.Finally, a comment on specialties for realizing priority ceiling protocol to alleviate the occurrence of priority inversion in (iC/OS-E is given.
Table of contents
Summary 5-6
Abstract 6-11
1 Introduction 11-23
1.1 Embedded Systems Overview 11-14 < br /> the 1.1.1 embedded systems definition 11
the 1.1.2 embedded systems characteristics 11
the 1.1.3 embedded systems development -13
the 1.1.4 embedded systems applications the 13-14
1.2 real-time system overview 14-17
1.2.1 Real-Time System concept 14-15
1.2.2 Real Time Operating System key technical indicators 15-16
1.2.3 Real-time operating system task scheduling 16-17
1.3 topics and Significance 17-18
real-time operating system 1.4 support embedded development Review and research platform selection 18-22
1.5 The main work 22-23
2 real-time systems 23-37
2.1 front and back office systems 23-24
2.2 multitasking 24-26
2.3 kernel 26-29
2.3.1 non-preemptive kernel (Non-Preemptive Kernel) 27-28
2.3.2 can be deprived of the type of kernel 28-29
2.4 real-time task scheduling algorithm 29-32
2.4.1 static priority scheduling 30-31
2.4.2 dynamic priority scheduling 31-32
2.5 mutex 32-33
2.6 semaphore mechanism the 33-34
2.7 interrupt 34-35 < br /> 2.8 real-time systems Summary the kernel analysis 35-37
3 μC/OS- Ⅱ 37-48
3.1 task 37
3.2 task state 37-39
3.3 task control block 39-41
3.4 μC/OS- Ⅱ, task management 41-44
3.4. 1 μC/OS- Ⅱ tasks created 41-42
3.4.2 μC/OS- Ⅱ task delete 42
3.4.3 task ready list 42-43
3.4.4 to change the priority of the task OSTaskChangeprio () 43-44
3.5 task scheduler communication between tasks 3.6 44-45
and synchronization 45-46
3.7 clock beat 46
3.8 μC/OS- Ⅱ initialize and start 46-48
4 μC / OS-Ⅱ priority inversion problem analysis and solution 48-56
4.1 the task priority reversal instance 48-49
a 4.2 priority Reverse 49-52
4.3 μC/OS- Ⅱ priority inversion solution the 52-56
4.3.1 mutex 53-54
4.3.2 Creating a mutex semaphore 54
4.3.3 wait and release the mutex semaphore the 54-56
5 experimental verification 56-65
5.1 development tools 56
5.2 Priority inversion of the experimental model 56-65
5.2.1 use of general semaphores to solve shared resource interaction the experimental realization denounced used and results analysis 56-61
5.2.2 solve the priority inversion experiments using mutex mutex realized and results analysis 61-65
6 Conclusions 65-66
Reference 66-70-
Appendix part of the program code 70-75
the outcome of the study, 75 - 76
Acknowledgements 76
Related dissertations
- Design of Wireless Sensor Network System Based on Multi-sensor
- A Large Parking Area Guidance System Based on STM32
- Automatic Testing System on the Calorific Value of Fuel Gas Based on ARM
- The Design of Energy Collector System Based on AT91RM9200
- RTU Design of Irrigation Information Collection System
- Design and Realization of the Cortex-M3Based Peirpherals Control System in On-board Video Server
- Design of Portable Flue Gas Analyzer Controller Based on ARM
- The Design of Chip Inductor Winding Machine Embedded Control System Based on ARM
- Research and Implementation of Smart Valve Controller with High Cost Performance and Remote Network Control
- Research on Real-time Scheduling Algorithm and Resource Management of Real-time System
- Research and Implementation of Embedded Real-time System μC/OS-Ⅱ Kernel Performance Improvement
- Embedded Operating System Priority Inversion Real-time Design Patterns and Method of Implementation and Research
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- The Study of Remote Video Monitor System Baced on ARM
- Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
- Video Surveillance System Based on Embedded Technology Research
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Design of Video Surveillance Software Based on Ti Dm6446Processor