Improvement of MC/OSⅡ-Based Embedded Real-Time Operating System Scheduling Algorithm

Author
HaoQiang
Advisor
GaoShengFa
School
Shandong University
Major
Applied Computer Technology
Classification
TP316.2 Real-time operating system
Degree
Master's thesis
Year
2011
Downloads
49
Citations
0

Request the full text

Abstract

The quality and efficiency of the gramm scheduling algorithm are critical to the applicability and extent of realtimeness of the embedded kernel,μC /OS-Ⅱis a preemptive real-time multigramming kernel that boasts the following features:completeness, translatability, solidifiablity and modifiability. It supports up to 56 usergramms, accommodates semmaphores, mailboxes, message queues and other commonly.used inter-process communication mechanism. It also works with a variety of microcontrollers and microprocessors, and is thoroughly coded in ANSI C.μC/OS-Ⅱ’s outstanding readability and translatability has made it easy to be ported to a good number of processor architectures and widely applied in areas which have increasingly demand for enhanced real-time features. Based on theμC/OS-Ⅱ-derived analysis, we made several improvements on its scheduling algorithm. Therefore, when the complexity of a project heightens and the number of gramms in aμC/OS2Ⅱoperating systems increases, one must switch to other development platforms once the number of gramms exceeds 64. This could result in voiding much of the pre-development work. Taking this situation and the gramm extendibility ofμC/OS2Ⅱinto consideration, and based on the original algorithm of priority scheduling, we broached two feasible algorithms with much enhanced gramm manageability One is to use the generic priority-determining table ofμC/OS2Ⅱ, redefine the bytes storing gramm priority, and by reestablishing a gramm table. After expanding the gramms from 64 to 256, and shoveling back the gramms into the gramm table, it will formulate a new, highest searching algorithm of the highest readiness of gramm priority. Another one is to use the two bytes left in the original priority-storing byte storage as indexes, rebuilding the gramm readiness table and expanding the gramm priorities from 64 to 256. On the ground of the open sourceμC/OS2Ⅱ,we made some modifications on the gramm priority scheduling algorithm of the original kernel, hence suitable to be applied on intricate development project with 64 or more gramms. We further draw our conclusions as the follow: algorithm one is superior and finer than algorithm two, for it is more clear and concise in theory, and more easily implemented. In engineering practices, there has been an elevated demand over the real-time feature of embedded system. In order to use the real-time kernel to develop embedded multi-gramm system programs, one should first devise a rational decomposition over system functions, formulate different gramms, and then determine priorities according to levels of gramm importance. The quality and efficiency of the gramm scheduling algorithm are critical to the applicability and extent of realtimeness of the embedded kernel.μC/OS-Ⅱis a preemptive real-time multigramming kernel that boasts the following features:completeness, translatability, solidifiablity and modifiability. It supports up to 56 user gramms, accommodates semmaphores, mailboxes, message queues. And other commonly used inter-process communication mechanism, works with a variety of microcontrollers and microprocessors, and is thoroughly coded in ANSI C.μC/OS-Ⅱ’s outstanding readability and transplantibility has made it easy to be ported to a good number of processor architectures and widely applied in areas which have increasingly demand for enhanced real-time features. Based on theμC/OS-II-derived analysis, we made several improvements on its scheduling algorithm. Besides improving algorithm by comparing several embedded real-time systems of typical algorithm. This thesis also scrutinizes the decreased efficiency problem caused by enhanced project complexity and increased gramms running in aμC/OSⅡ. The kernel can handle up to 64 gramms, and as 8 of them are reserved for the system. The user is actually allotted to have 56 application gramms at most. Therefore, when the complexity of a project heightens and the number of gramms in aμC/OS2Ⅱoperating systems increases, one must switch to other development platforms. Due to the number of gramms exceed 64, which could result in voiding much of the pre-development work. Taking this situation and the gramm extendibility ofμC/OS2Ⅱinto consideration, and based on the original algorithm of priority scheduling, we broached two feasible algorithms with much enhanced gramm manageability One is to use the generic priority-determining table ofμC/OS2Ⅱ, redefine the bytes storing gramm priority. By reestablishing a gramm table, expanding the gramms from 64 to 256, and shoveling back the gramms into the gramm table. It can formulate a new, highest searching algorithm of the highest readiness of gramm priority. Another one is to use the two bytes left in the original priority-storing byte storage as indexes, rebuilding the gramm readiness table and expanding the gramm priorities from 64 to 256. On the ground of the open sourceμC/OS2Ⅱ,we made some modifications on the gramm priority scheduling algorithm of the original kernel, hence suitable to be applied on intricate development project with 64 or more gramms. We further draw our conclusions as the follow:algorithm one is superior and finer than algorithm two, for it is more clear and concise in theory, and more easily implemented.

Related dissertations

  1. Effects of the Multi-National Corporation to China embedded industrial agglomeration
    ZhengLiFang ·Capital University of Economics ·2014 ·Master's thesis
  2. The Remote Wireless Control System Based on ARM Processor
    WangHui ·Nanchang University ·2014 ·Master's thesis
  3. The Research and Design of Security Monitoring System Based on Embedded and Cloud Storage
    ChenYunLong ·Wuhan University of Technology ·2013 ·Master's thesis
  4. Engine Room Monitoring System Based on the Embedded Web Server
  5. Rearch on Intelligent Monitoring Technology That Access to Internet
  6. Design of Indoor Environmental Quality Monitoring System Based on ARM
  7. Design of Industrial Equipment State Wireless Monitoring System Based on STM32
    ZhangDongSheng ·Dalian University of Technology ·2013 ·Master's thesis
  8. Design and Implementation of Intelligent Network Dome Based on DaVinci Technology
  9. 3G Agricultural Experiment Station of intelligent design and development of remote monitoring system based on
  10. The Research on Algorithm for Composite Forest Fire Detection, Recognition and Early Warning
  11. Design of Human Physiological Parameters Acquisition System Based on Embedded Linux
  12. Embedded Software Design of AC Field Detection Instrument Based on ARM
  13. Design and Realization of Farm Machinery Working State Real Time Wireless Monitoring System
    WangZuo ·Harbin Engineering University ·2013 ·Master's thesis
  14. Design of Farmland Environment Remote Monitoring System Based on ZigBee Network
    GuoJia ·Henan Agricultural University ·2013 ·Master's thesis
  15. Design and Implementation of Video Capture System Based on Embedded Technology
    RanYuFeng ·Shandong University ·2013 ·Master's thesis
  16. Research of Surface Roughness Network Data Collector System Based on ARM
  17. System Design of Automatic Steel Pipes Group Machine and Research on Algorithm
    ZhangPeng ·Harbin Engineering University ·2012 ·Master's thesis
  18. The Design and Implementation of Gateway and Client of Embedded Smart Home System
  19. The Embedded Industrial Control Module Based on iCAN Protocol
    GouZuo ·Inner Mongolia University of Technology ·2013 ·Master's thesis
  20. A Design of Embedded Motion Controller for4-axis Industrial Robot
    LiuZhiWei ·Harbin Institute of Technology ·2012 ·Master's thesis