A Study on Real-Time Operating System Kernel Construction Based on μC/OS-Ⅱ
- Author
- ZhengPei
- Advisor
- WangLi
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 358
- Citations
- 0
Abstract
The real-time system for demanding applications processor operations or data flow time . The real-time system with strictly defined fixed time constraints , the process must be completed within the specified time limit , otherwise the system will fail . Thus real-time operating system , task scheduling may be the most important part of a real-time system . In this paper , we choose μC/OS- Ⅱ - an open-source real-time kernel as prototype build their own real-time operating system model . Because of its unique ready table structure , μC/OS- Ⅱ showed high efficiency in terms of task scheduling . But as consideration , it requires that any task can not have the same priority . In this paper, the extended μC/OS- Ⅱ ready table structure put forward the task scheduling an improved method to eliminate the above restrictions . On this basis , one of the two or more time between tasks of the same priority round-robin scheduling method also in this paper . At the same time , we are also aware of the defects μC/OS- Ⅱ task stack layout , The defects lead to serious problems of memory consumption is very inappropriate for most real-time embedded applications . Improvement program proposed in this paper a large extent by the introduction of a new stack layout , improve the efficient use of system memory . In the last article , as a part of this study and explore the transplant program μC/OS- Ⅱ on ARM architecture , and its key technologies of combined implementation code are described.
Table of contents
The first chapter the 7-11
1.1 Introduction 7-8
1.2 Background 8-10
1.3 papers The main work and content arrangements 10-11
Chapter II real-time system overview 11-17
2.1 real-time operating system, the basic characteristics 11-12 < br /> 2.2 real-time scheduling the 12-17 2.2.1 Real-Time Scheduling
strategy the 13-14 2.2.2 deadline scheduling
14
2.2.3 rate monotonic scheduling the Kernel Analysis 14-17
Chapter μC/OS- Ⅱ 17-37
3.1 μC / OS - II real-time kernel features 17-18
3.2 μC/OS- II kernel part Overview 18
3.3 μC/OS- Ⅱ kernel task management 18-27
3.3.1 enter and launch critical region (Critical Sections) 19
3.3.2 Task Status (Task States) 19 -20
the 3.3.3 user tasks structure 20-21
3.3.4 task control block (Task Control Blocks) 21-23
3.3.5 task ready list (Ready List) 23-25 ??
3.3.6 Task Scheduler (Task Scheduler) 25-27
3.3. 7 to the scheduler lock and unlock (Locking and UnLocking the Scheduler) 27
3.4 μC/OS- II interrupt processing 27-32
3.4 .1 enter interrupt and exit interruption 28-31
3.4.2 interrupt switching function 31-32
3.5 μC/OS- Ⅱ initialization and startup 32-37
3.5.1 μC/OS- Ⅱ initialization 32-33
3.5.2μC/OS--Ⅱ start 33-37
Chapter kernel improvements μC/OS- Ⅱ 37-49
4.1 improvement task scheduling 37-44
.1.1 priority inversion (Priority Inversion) and its solution 37-40
4.1.2 kernel data structures extended μC/OS- Ⅱ 40-42
4.1.3 Improved Task Scheduling Algorithm 42-44
4.2 μC/OS- Ⅱ task stack improvements 44-47
.2.1 μC/OS- Ⅱ stack structure analysis 44-45
4.2.2 μC/OS-, the Ⅱ stack to improve design 45-47
.3 Chapter Summary 47-49
Chapter μC/OS- Ⅱ the ARM platform transplant program 49-59
5.1 transplantation μC/OS- Ⅱ Hardware requirements 49-50
5.2 ARM processor architecture Introduction 50-53
5.2.1 ARM processor operation mode (operation mode) 51
5.2.2 ARM processor program status register: (PSR: Program status register) the 51-52
5.2.3 ARM processor register 52-53
5.3 μC/OS- Ⅱ in ARM platform transplantation 53-59
5.3.1 OS_CPU on. H 54-55
5.3.2 OS_CPU_C. C 55-56
5.3.3 OS_CPU_A. S 56-57
5.3.4 startup code 57-59
Conclusion 59-60
thank the 60-61 the
References 61-63
read during research 63
Related dissertations
- Supervising & Scheduling of Multi-DSPs in Motion Control System
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Remote Monitor System for Oil Wells Working Condition Based on GPRS
- Engine Room Monitoring System Based on the Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- The Research and Design of Embedded Graphic Remote Monitor Terminal
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Design of Remote Monitoring System Based on ARM
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Study on Embedded Data Acquisition System Application
- The Study of Physiological Parameters Monitoring and Remote Wireless Alarming System Based on ARM
- Study on ARM-based Embedded Monitoring and Measuring System of Refrigerated Vehicle for Fresh-keeping of Fruit and Vegetable
- Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM
- Design of Human Physiological Parameters Acquisition System Based on Embedded Linux
- Design of Remote Strain Measurement System Based on FGPA
- Industrial Field Data Acquisition System Design Based on CAN Bus
- The Automatic Measurement System for Plumb-line
- Research on Distributed Industrial Signal Modularized Data Acquisition System Based on ARM
- The Design of Four-channels High Speed Data Acquisition System Based on ARM