Improvement of a Scheduling Algorithm for Embedded System μCOS-Ⅱ Kernel

Author
ChenDaoMing
Advisor
QinGuiHe
School
Jilin University
Major
Software Engineering
Classification
TP316.84 OS / 2 operating system
Degree
Master's thesis
Year
2012
Downloads
80
Citations
0

Request the full text

Abstract

Embedded system is an important branch of the computer system. With thewidely use of the computer, the applications of the embedded system is becomingmore and more popular. As focusing on the application, the embedded systemimproves the level of our lives and makes it more convenience. We can find thedevices are designed based on the embedded system everywhere in our living space.Such as PDA, mobile phone, motorcar. And even in the devices used in the missilelauncher.The embedded operating system is the core of the embedded system. The qualityof the embedded operating system which is designed determines the stability andreliability of the entire embedded system. Researchers never loss their interest andstop their steps doing researches and developments since the emerge nce of theembedded system.μC/OS-II is an embedded operating system. It reflects the ingenious idea of theauthor. And its structure is simple and concise. The codes of the μC/OS-II are easy tounderstand. μC/OS-II successfully achieves the functions which are indispensable ofthe real-time operating system. It is designed in the micro-kernel method. All thereasons above make the μC/OS-II widely used in the field of the embedded system.In this thesis, firstly, it does some research and entirely knows the schedulingalgorithm of the μC/OS-II. And then, it gives some deficiencies of the μC/OS-IIoperating system. Such as, a priority only supports one task. The tasks supported bythe μC/OS-II are few. And the task which has low priority waits for a long time.Based on the above deficiencies and combined the advantages of the μC/OS-II, thisthesis give a new scheduling algorithm. The new scheduling algorithm makes the priority scheduling algorithm as the first layer scheduling. Some data structures whichare needed are redefined, such as the task controller. And it gives the descriptionsabout the structure organization chart, the initialization of the task controller, theestablishment of the linked list, the scheduling process and the deletion of the tasks.And it gives the explicit explanation. Finally, the function is improved. And it givesthe process of the scheduling. Based on the different requirement of the tasks, all thetasks are divided in two categories. It is called the real-time task and the time-sharingtask.The top16priorities are used by the real-time tasks. And there is only onereal-time task corresponding one priority. The real-time task is executed by theμC/OS-II system in the first time. The reason of design is to meet the real-time tasksrequiring real-time scheduling in some special situation.The priority which are used by the time-sharing tasks are between the real-timetasks and the statistical task, the idle task. The time-sharing tasks are those that are noneed to execute by the CPU firstly. And there are one or more time-sharing taskscorresponding one priority. All the time-sharing tasks are stored in the form of doublylinked list. It makes the priority scheduling algorithm as the first layer scheduling.And it makes the time slice scheduling as the second layer scheduling. When thepriority which is corresponding one or more time-sharing tasks is scheduled by theCPU, the time slice scheduling will be ran on the doubly linked list which is linked tothe table OSTCBPrioTbl[]. After a time-sharing task is executed by CPU in theprocess of the scheduling, it will see that whether there is a real-time task which is ina higher priority ready. If the task exists, the system will go to schedule it. If the tasknot exists, the system still remains to schedule the next time-sharing task which islinked to the doubly linked list. But the time-sharing tasks which have top prioritycannot have the privilege to interrupt in the process of time-sharing scheduling.After the improvement of the scheduling algorithm, we can make the priority ofthe tasks more reasonable. It can meet the requirement of the real-time response. Andit also can realize that one priority can support one or more tasks. And finally, thenumber of the task supported by the μC/OS-II gets increase. At last, this thesis gives the test report of the new scheduling algorithm for theμC/OS-II kernel. And it can meet all the requirements.

Table of contents

Summary 4-6 Abstract 6-11 Chapter 1 Introduction 11-16 1.1 Background 11-13 1.2 significance 13-14 1.3 The paper is 14-16 Chapter 2, embedded systems and embedded real-time operating system 16-26 2.1 embedded Systems 16-24 2.1.1 concept of embedded systems 16 history nbsp 2.1.2 embedded systems ; 16 -17 2.1.3 embedded system features 17-19 2.1.4 embedded systems constitute 19-24 2.2 embedded real-time systems 24-25 2.2.1 the concept of embedded real-time systems 24 2.2.2 microkernel 24-25 2.3 Summary 25-26 Chapter 3 μ C / OS-II and its kernel scheduling algorithm analysis 26-39 3.1 μ C / OS-II Overview 26-28 3.2 μ C / OS-II kernel scheduling algorithm 28-38 3.2.1 μ C / OS-II mission 28 3.2.2 μ C / storage structure OS-II mission state 28-30 3.2.3 μ C / OS-II mission 30-31 3.2.4 μ C / OS-II scheduling algorithm timing 31-38 3.3 scheduling 38 3.4 Summary 38-39 Chapter 4, based on priority and time slice scheduling algorithm 39-60 4.1 issues raised 39-40 4.2 based on priority and time slice scheduling algorithm 40-59 4.2.1 classification tasks modified 41 4.2.2 of the task control block data structures , etc. 41-44 4.2.3 initialization task control block 44-45 4.2.4 build task control block list of 45-47 4.2.5 scheduling process 47-56 4.2.6 delete task control block 56-57 4.2.7 functions OSTimeTick () changes 57-59 4.3 Summary 59-60 Chapter 5 algorithm testing 60-67 5.1 development tools 60 5.2 task design 60-61 5.3 implementation 61-66 <br / > 5.4 summary 66-67 Chapter 6 summary and Outlook 67-69 6.1 summarizes 67-68 6.2 Prospects 68-69 References 69-71 Thanks 71

Related dissertations

  1. The Application Research of Real-time Communication Protocol
    JiangZhongJie ·Dalian University of Technology ·2008 ·Master's thesis
  2. Research on Road and Bus of Urban-Rural in the Yangtze River Delta Region
  3. Analysis of the Priority of Rural Residential Land Consolidation in Houma City
    WangLiQin ·Chinese Geology University (Beijing) ·2013 ·Master's thesis
  4. Study of Real-time Grid Monitoring System Based-on Complex Event Processing
  5. Research and Implementation of the Web-integrated Real-time Video Surveillance System Based on Flex
    ZhouBin ·Central South University ·2013 ·Master's thesis
  6. Research of Heterogeneous System Integrated Optimization Based on OPC DX Technology
    HaoYongLiang ·Tianjin University of Technology ·2013 ·Master's thesis
  7. Knitting Machine Hardware Control Platform Design and Implementation Based on NCUC-bus Fieldbus
  8. Research on Control System of a6-DOF Motion Platform
    YaoShiLei ·Harbin Engineering University ·2013 ·Master's thesis
  9. Design and Application Research on Multi-Master Node TTCAN Network
  10. The Realization and Research on Real-time of CANopen Network
  11. The Research on Ethernet_based Interface of Embeded Motion Control System
  12. Design of Distributed Concurrent State-aware System for the Quadruped Bionic Robot
    LiuMingLiang ·Central South University ·2013 ·Master's thesis
  13. On-board Vision System for Humanoid Ping-Pong Robot
    XieZuo ·Zhejiang University ·2014 ·Master's thesis
  14. The Research of Concurrent Priority Control and Authorization Based on Usage Control
  15. Study of CPS Communication Based on MCU and Intelligent Optimization Algorithms
    FuJiaXin ·Shenyang University of construction ·2013 ·Master's thesis
  16. The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX
  17. Research on Ranking Scientific Publications Based on Citation Graph
    DuWenJie ·Harbin Engineering University ·2013 ·Master's thesis
  18. Optical Capture Based Development of Virtual Interaction System
    ZhouXiaoYang ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. Real-time Performance of the Semi-physical Simulation System Based on RTX
  20. Research on Virtual Surgery Cutting Technique Based on Force Feedback
    SunYuXia ·Harbin Engineering University ·2013 ·Master's thesis