OpnkOS real-time kernel design
- Author
- YangLei
- Advisor
- ChenZuoBin
- School
- Southwest Petroleum Institute
- Major
- Computer Applications
- Classification
- TP316.2 Real-time operating system
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 24
- Citations
- 0
Abstract
This thesis introduces a real-time kernel designed by myself, named OpnkOS. It’s a multi-tasks’and preemptive real-time kernel,which has an open kernel structure, offers more authorities to procedure designers and makes the use of resources more effectively.Some relevant problems about the real-time kernel designment has been discussed at first, and then I design a real-time kernel on this basis.It mainly includes task management module, inner-task communication module, interrupt management module, timer management module and memery management module. I carry on encapsulation to some modules in object-oriented way in the article, including the task, the semaphore, the message mail box , the message queue in the communication module, the timer and memory, etc., which reduces the use of the whole variable, increases the integrality of the module. To the module unsuitable setting up class structure, for instance the interrupt ,the scheduler and the memory allotment, the kernel offers interface functions for designers to use. the whole kernel provides designers heavy degree of freedom, and help them use designing.This thesis devides 6 chapters to design the modules of this kernel separately, and realizes their relevant main functions. At foot of this paper, it summarizes the degree of actualization and proposes the problems that is not solved yet of this kernel.
Table of contents
Summary 2-3
Abstract 3-6
1 Introduction 6-13
1.1 real-time system concept 6
1.2 real-time operating system, the status quo at home and abroad 6
1.3 real-time operating system at home and abroad Introduction 6-8
1.4 thesis and working 8-12
1.4.1 OpnkOS features 9-10
1.4.2 kernel architecture and function map 10-12
1.5 Thesis organization 12-13
2 real-time kernel designed some relevant theories 13-22
2.1 Task Manager 13-16
2.1.1 scheduling classification 13-16
task communication and synchronization between 2.2 16-19
2.3 interrupt management 19-20
2.4 clock management 20
2.5 memory management 20-22
2.5.1 static allocation and dynamic allocation 21-22
3 Design and Implementation Task Manager 22-30
3.1 OpnkOS task design 22-26
3.1.1 Priority design 22
3.1.2 Status Definition 22-23
3.1.3 task control block definition 23
3.1.4 Task class structure definition 23-24
3.1.5 The main algorithm 24-26
3.2 OpnkOS task management 26-30
3.2.1 task list to define 26
3.2.2 The main algorithm 26-30
4 Design and Implementation Task Scheduler 30-32
4.1 OpnkOS scheduling design 30
4.2 The main algorithm 30-32
nbsp 5 design and implementation of communication between tasks ; 32-40
5.1 semaphore 32-35
5.1.1 Semaphore design 32-33
5.1.2 The main algorithm 33
5.1.3 using semaphore mutex 33-34
5.1.4 using semaphores to synchronize 34-35
5.2 Messaging Mailbox 35-37
5.2.1 Mailbox design 35-36
5.2.2 The main algorithm 36-37
5.3 Message Queue 37-39
5.3.1 Message Queue design 37-38
5.3.2 The main algorithm 38-39
5.4 little attention 39-40
6 interrupt management design and implementation 40-44
6.1 switch interrupt macro definition 40
6.2 OpnkOS interrupt management design 40-41
6.2.1 Interrupt Vector IVT design 40
6.2.2 interrupt nesting design 40
6.2.3 interrupt definitions 40-41
6.3 The main algorithm 41-44
7 Time Management Design and Implementation 44-49
7.1 OpnkOS clock design 44-47
7.1.1 Clock class structure definition 44
7.1.2 The main algorithm 44-47
7.2 OpnkOS clock management 47-49
8 memory management design and implementation 49-57
8.1 OpnkOS memory management design 49-51
8.1.1 OpnkOS memory division 49-50
8.1.2 system partition class definition 50-51
8.2 The main algorithm 51-52
8.3 Other relevant definitions 52-57
9 Summary and Outlook 57-58
Thanks 58-59
References 59-60
Related dissertations
- Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
- The Design and Implementation of Website Construction Based on OpenCms Technology
- Design and Implementation of Materials Management System of Multi-level Educational Institutions
- Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
- The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
- Design and Implementation of Tianhua College Office System
- Universities Fixed Asset Lifecycle Management System Design
- Analysis and design of engineering project management system
- The Design and Implementation of Vehicle Tracking Management System
- Design and Implementation of the Management System of the Service Area
- The Design and Realization of Campus Blog System Based on ASP
- The Design and Implementation of the Ship Agency Management System
- Design and Implementation of Supermarket Chain Chongqing Chongkelong Co Information System
- Design and Implementation of Network Curriculum Teaching Platform for Middle School
- Analysis and design of student information management system
- Design and Implementation of Community Management Sub-System on Police Mobile System
- Chengdu Jinjian Finance Bureau Financial Approval System Design and Implementation
- Chengdu Jinpeng Company’s Human Resource Management System Design and Implementation of Master Dissertation
- The Design and Realization of the Financial Approval System
- The Design and Implementation of Member Management System for Technical Title Evaluation Committee of WeiFang City