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

Request the full text

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

  1. Design of Wireless Sensor Network System Based on Multi-sensor
    XuJiaDong ·University of North ·2014 ·Master's thesis
  2. A Large Parking Area Guidance System Based on STM32
  3. Automatic Testing System on the Calorific Value of Fuel Gas Based on ARM
  4. The Design of Energy Collector System Based on AT91RM9200
  5. RTU Design of Irrigation Information Collection System
  6. Design and Realization of the Cortex-M3Based Peirpherals Control System in On-board Video Server
    QiLiNa ·WRI ·2012 ·Master's thesis
  7. Design of Portable Flue Gas Analyzer Controller Based on ARM
    LiChao ·Xi'an Technological University ·2012 ·Master's thesis
  8. The Design of Chip Inductor Winding Machine Embedded Control System Based on ARM
    LingJiaWu ·South China University of Technology ·2012 ·Master's thesis
  9. Research and Implementation of Smart Valve Controller with High Cost Performance and Remote Network Control
  10. Research on Real-time Scheduling Algorithm and Resource Management of Real-time System
    ZhouBenHai ·Shenyang University of Technology ·2007 ·Master's thesis
  11. Research and Implementation of Embedded Real-time System μC/OS-Ⅱ Kernel Performance Improvement
    JiangChao ·Shenyang University of Technology ·2009 ·Master's thesis
  12. Embedded Operating System Priority Inversion Real-time Design Patterns and Method of Implementation and Research
    YangLiNa ·Shenyang University of Technology ·2011 ·Master's thesis
  13. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  14. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  15. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  16. Video Surveillance System Based on Embedded Technology Research
  17. Design of Video Monitoring System Based on the Embedded
  18. The Design of Embedded Network Video Surveillance System Based on ARM9
  19. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  20. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis