Research on the Context Switching Method in Preempitive Real-Time System

Author
CaiXueLiang
Advisor
QiaoJianZhong
School
Northeastern University
Major
Computer System Architecture
Classification
TP316.2 Real-time operating system
Degree
Master's thesis
Year
2010
Downloads
29
Citations
0

Request the full text

Abstract

As RTOS(Real-Time Operating System) is being widely used, it attracts more and more attentions. RTOS, according to its work patterns, can be divided into preemptive scheduling and non-preemptive scheduling. The context switching happens when the task finished, canceled, or waiting for messages in the non-preemptive scheduling. The context switching also occurs when the task being activated in the preemptive scheduling in order to fast-response the new high priority task. Consequently, the context switching is inevitable. It allows multiple tasks at execution simultaneously to share the only one processor.Because possessing the huge superiority of the best utilization of the CPU and fast-response the new task, the preemptive scheduling method is supported by most of the real-time kernel. While very useful, context switching also introduces high performance overheads, which involves saving and restoring the task states. The preemption of the preemptive scheduling takes no account of the current running task’s state. If the running task is nearly finished and the new one isn’t urgency, as the new task’s preemption, the current task will be delayed and could have missed its deadline, so the RTOS increase the amount of context switching and waste CPU resource. While in the non-preemptive kernel, if the scheduling is at a suitable time, the RTOS will run smoothly, have better CPU’s utilization and less overheads. In accordance with the above case, this paper considers "Tasks Set Achievement Relaxation Time" and "Max Protected Time", both modify the scheduling time considering the priority as primary factor, while the "Max Protected Time" is supplementary. That is to say, when the running task’s remaining execution time less than its protected time, the context switching will not be happened. On the contrary, the RTOS will compare the task’s priority of ready list, and choose the highest one to schedule.Finally, the author writes two preemptive scheduling simulations, one based on priority, and another one according to this paper’s novel algorithm. Subsequently, we have done a number of experimentations. Experimental results show that the novel algorithm apparently decreased the number of the context switching and all the tasks have a valuable result in each deadline.

Table of contents

Summary 5-6 Abstract 6-9 first chapter 9-15 1.1 research background, purpose and meaning 9-12 1.1.1 Real-Time system Overview 9-11 1.1.2 purpose and significance 11-12 1.2 Research Status 12 the main work of this paper -13 1.3 13-14 1.4 this article organizational structure 14-15 Chapter II real-time operating system and real-time scheduling 15-27 2.1 real-time operating system Overview 15-18 2.1.1 real-time operating system 15 2.1.2 nbsp several common real-time operating system ; 15-16 evaluation nbsp 2.1.3 real-time operating system ; basic theory 16-18 2.2 real-time scheduling 18-21 2.2.1 the basic concepts and terminology related 18-19 2.2.2 common task parameters Category 19-20 2.2.3 real-time tasks 20-21 <br / > 2.3 real-time scheduling algorithm 21-26 classification 2.3.1 real-time scheduling algorithm 21-22 2.3.2 static scheduling algorithm 22-23 2.3.3 dynamic real-time scheduling algorithm 23-24 2.3.4 all types of real-time hybrid scheduling tasks 24-26 2.4 Summary 26-27 Chapter III study of task switching 27-51 3.1 task switching overview definitions 27-31 3.1.1 task switching generating timing 27-28 3.1.2 task switching process 28 3.1.3 task switching 28-30 3.1.4 context switching overhead 30-31 3.2 real-time systems analysis task switching 31-36 3.2.1 non- preemptive kernel task switching 31-32 <br / > 3.2.2 preemptive kernel task switching 32-34 3.2.3 Summary 34-36 3.3 solving tasks largest protected time 36-49 3.3.1 set of tasks to complete relaxation time 36-38 3.3.2 tasks largest protected time 38 3.3.3 verification tasks maximum protection time 38-49 3.4 Summary 49-51 Chapter IV task switching algorithm improvements and case analysis 51-63 4.1 classification task switching improved 51-54 4.2 task switching ; nbsp 54-56 4.3 Case Study 56-61 4.4 Summary 61-63 Chapter experimental results and analysis 63-73 5.1 experimental model 63-64 5.2 experimental test 64 - 71 5.2.1 test case 64-67 5.2.2 testing tasks set 67-71 5.3 Summary 71-73 <br / > Chapter VI summary and Outlook 73-75 6.1 thesis summary 73 6.2 further work 73-75 references 75-79 Thanks 79

Related dissertations

  1. Research on the Scheduling Algorithms in Real-Time Multimedia Systems
  2. Design and Implementation of Vibration Spectrum Analyzer
    WangSheng ·Zhejiang University of Technology ·2013 ·Master's thesis
  3. Reseach on Intelligent Control of Elevator Gate Based on Image Recognition
    WangFei ·Zhejiang University of Technology ·2009 ·Master's thesis
  4. Study on the transplantation of FreeRTOS real-time operating system based on Lwip protocol
  5. The kernel of embedded real-time operating system FreeRTOS
  6. Design and Implementation of Embedded Operating System WebitX for Internet of Things
    GuoNaiMing ·Northeastern University ·2010 ·Master's thesis
  7. The Interrupt Mechanism of Real-time Operating System on ARM
  8. A Tailoring and Research of Embedded Operating System in Intelligent Car Equipment
  9. Memory Management of an ARM-based Embedded Real-Time Operating System
  10. Design and Implementation of an Automotive Embedded Real-Time Operating System Kernel Supporting Homogeneous Multicore
    JiangBin ·Hunan University ·2012 ·Master's thesis
  11. Formal Verification of Real-time Operating System in Binary Code Level
    ShiJianZuo ·East China Normal University ·2012 ·Doctoral dissertation
  12. Semi-physical Simulation of Aircraft Brake Control Algorithm
    YangZhenGeng ·Central South University ·2012 ·Master's thesis
  13. Research and Application on Optimization Technologies for Real-time Operating System in Open CNC System
  14. Reconfigurable embedded system prototyping platform and operating system
    ZhouXueGong ·Fudan University ·2007 ·Doctoral dissertation
  15. Open real-time Linux research and design
    ZhuXiangBin ·Fudan University ·2005 ·Doctoral dissertation
  16. Research on novel piezoelectric feeder
    FanZunQiang ·Jilin University ·2008 ·Doctoral dissertation
  17. Research on Context Mediation Based Semantic Information Integration Method
  18. Research on Operating System Support for Reconfigurable Computing
    ZhouBo ·Fudan University ·2006 ·Doctoral dissertation
  19. Design of Beam Steering System Based on Embedded Computer
  20. Based on a computer system processing analog phone calls and Implementation