Research and Design of Real-time Scheduling Algorithm Supported for Hierarchical Hybird Scheduling Policy
- Author
- ZhangZuo
- Advisor
- WangXiBo
- School
- Shenyang University of Technology
- Major
- Applied Computer Technology
- Classification
- TP316.2 Real-time operating system
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 61
- Citations
- 0
Abstract
With the increasingly widespread application of real-time systems, hard real-time tasks and soft real-time tasks coexist in the same system are becoming increasingly common. Although scheduling method for different types of real-time task proposed by emerging, how to schedule reasonable and effective to hybrid real-time systems tasks which have different time requirements, become a hot research issue. The objective is to design a hierarchical scheduling algorithm to try to improve the response speed of soft real-time and non-periodic tasks under the premise of periodic tasks in hard real-time to ensure the deadline.In this paper, RT-Linux3.2 core is the object of research. RT-Linux3.2 kernel is based on preemptive and static solid priority scheduling. According to comprehensive analysis of scheduling organizational structure and scheduling algorithm on real-time kernel, a layer hybrid scheduling algorithm based on proportional dispatching bandwidth server is implemented in RTLinux. The scheduling between task modules is based on time slice rotation, but the scheduling in task module is based on priority-based preemptive scheduling policy. Firstly, new algorithm add task module data structure in order to restore the control information of module which tasks belong to. Secondly, task scheduling parameters is modified just as add module identification which task belongs to in order to provide basis for the hierarchical scheduling of task module. Through modifying the interrupt time of scheduler and the interrupt processing of timer, it is to realize rotation scheduling between task modules. The function of select new task and preempt task is isolated from scheduler and independed package in order to modify the scheduler to adapt to different types of tasks. Through limiting the rules of switching between task modules, when a module occupy the resources, the tasks in the other module can’t seize the resources and only the tasks in one module may preempt between each other.Through the reconstruction of the RTLinux kernel and the modifying of the scheduler, it implement the hierarchical scheduling, expand the categories of tasks and enhance the scheduler function. New kernel does not change the original priority preemptive scheduler and make it as the low level scheduler, at the same time it realizes rotation scheduling policy in which sub-module of different types dispatching time slice proportional.
Table of contents
Abstract 5-6
Abstract 6-11
The first chapter 11-18
1.1 research background and purpose 11-12
1.2 research status 12-13
1.3 Real-Time System Profile 13-16
1.3.1 Real-time system is defined 13
1.3.2 Classification of real-time systems 13-14
1.3.3 Real-time system architecture 14
1.3.4 Several real-time system based on Linux Introduction 14-16
1.4 The main thesis work 16-17
1.5 thesis is organized 17-18
Chapter II real-time scheduling theory and research 18-27
2.1 real-time scheduling of the basic concepts and definitions 18-19
2.2 Classification of real-time tasks with state switching 19-20
2.2.1 Classification of real-time tasks 19
2.2.2 states and switching between tasks 19-20
2.3 real-time scheduling algorithm for classification 20-22
2.4 mixed real-time task scheduling algorithm combined 22-24
2.5 stratified prorated server algorithm 24-26
2.5.1 PDBS based hierarchical scheduling framework 24-25
2.5.2 Task Properties and schedulability conditions 25
2.5.3 distributed computing time slice cycle 25-26
2.5.4 PDBS algorithm described 26
2.6 Chapter Summary 26-27
Chapter RTLinux kernel principle and structure 27-35
3.1 RTLinux Overview 27-28
3.2 RTLinux implementation principle 28-29
3.3 RTLinux kernel structure 29-30
3.4 RTLinux scheduling mechanism 30-31
3.4.1 RTLinux scheduling policy 30
3.4.2 RTLinux scheduling process 30-31
3.5 RTLinux programming 31-34
3.5.1 modular programming and related concepts 31-32
3.5.2 thread creation and manipulation functions 32-34
3.6 Summary 34-35
Chapter RTLinux scheduler structure and code analysis 35-44
4.1 RTLinux scheduler and its associated modules analyze 35-37
4.1.1 Scheduling module initialization 35-36
4.1.2 thread creation function code profiling 36
4.1.3 scheduling related relationships between the various modules 36-37
4.2 scheduler relevant important structure 37-40
4.3 RTLinux scheduler module analyzes 40
4.4 RTLinux timer mode 40-42
4.5 Chapter Summary 42-44
fifth chapter is based on a hybrid of RTLinux real-time scheduling algorithm 44-52
5.1 modify the task queue structure and related data structures 44-48
5.1.1 Add Category module control block 44-45
5.1.2 scheduling related structure modification 45-46
5.1.3 modified correlation function add 46-48
5.2 scheduler modify 48-51
5.2.1 scheduling function to modify 48-49
5.2.2 interrupt handler modifications 49-51
5.3 Initialization and delete functions to modify 51
5.4 Summary 51-52
Chapter VI experimental testing and analysis 52-60
6.1 experimental platform for the establishment 52-54
6.2 new scheduling module generation and installation 54-55
6.3 algorithm validation and results analysis 55-59
6.3.1 scheduling framework based on hierarchical scheduling algorithm PDBS verify 55-56
6.3.2 PDBS scheduling algorithm scheduling latency test 56-59
6.4 Chapter Summary 59-60
Chapter VII Conclusion 60-62
References 62-64
learning research 64-65
Thanks 65
Related dissertations
- 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
- The Research and Design of a Parking Fee Collective System Based on ARM9
- 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
- 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
- Research of Energy-Efficient Scheduling for Parallel Real-Time Tasks on Multicore Systems
- Research on real time multi task scheduling method of periodic exchange priority
- Research on Transformation of UPPAAL Timed Automata to UML Diagram and the Implementation Tool
- Research and Implementation of Semi-partitioned Multiprocessor Real-time Scheduling
- Research and Apply the Shared Cache Partition in Real-time Operate System
- The Research and Implementation for XtratuM Based on Loongson2F