Binary chop type task dispatching method for embedding real-time operating system

A real-time operating system and binary search technology, which is applied to memory systems, calculations using numerical representations, program control using stored programs, etc., can solve problems such as complex structural variables, large storage space, and changing priorities, and achieve The effect of saving storage space, running efficiently, and scheduling delay is stable

Inactive Publication Date: 2004-09-15
TSINGHUA UNIV
View PDF0 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing public technology, there is a sequential traversal ready task queuing method or an improved traversal queuing method. The structure variables used in this method are simple and flexible, but the time consumption is unstable. In the worst case, the entire task queue must be traversed. Therefore, when there are many priorities, the longest traversal delay is unacceptable for real-time systems
Some real-time operating systems such as μC / OS-II use the grouping mapping table method, which is time-consuming, stable and highly efficient, but the structure variables of this method are complex, the storage space used is large, and it is not conducive to dynamically changing the priority

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Binary chop type task dispatching method for embedding real-time operating system
  • Binary chop type task dispatching method for embedding real-time operating system
  • Binary chop type task dispatching method for embedding real-time operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Binary search is a commonly used search method for ordered tables. see the principle figure 1. Without loss of generality, let the elements in the list be arranged in descending order. The binary search method initially searches the entire list. Find the element whose pointer points to the middle point of the list, and compare the element with the target value, that is, the element to be searched. If the two are exactly equal, the search is successful; if the value of the midpoint element is less than the target value, it means that the element to be searched is in the first half of the list part, otherwise it indicates that the element to be found is in the second half of the table. According to the judgment result, take the first half of the sublist or the second half of the sublist, point the search pointer to the midpoint element of the sublist and repeat the above comparison process until the search is successful or the list can no longer be split. Binary searc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

State mask is adopted in the method to indicate ready state of user's task in a task table arranged in sequence according to priority high and low. Then, dichotomy search is realized by using shift comparison to locate task with highest priority rapidly, based on which, despatcher carries out task scheduling and switching. The method uses first level mask to indicate priority distribution of tasks in ready state. Dichotomy search is utilized to raise efficiency for locating task with highest priority, and to reduce number of time for accessing memory. The invention possesses advantages of stable dispatching time delay, high efficiency and less memory space used. The method implemented in MPC555 hardware platform is as a part of Tsinghua open system of electrical car (Tsinghua OSEK).

Description

technical field [0001] The binary search type task scheduling method of an embedded real-time operating system belongs to the technical field of embedded real-time operating systems, and in particular relates to an embedded real-time operating system based on a PowerPC processor structure. technical background [0002] Task scheduling is one of the cores of a multitasking operating system. The main function of task scheduling is to select a ready user task from user tasks according to certain rules, and jump to the user task for execution. Most embedded real-time operating system kernels are based on priority scheduling, that is, each task is given a priority value according to its importance, and the scheduler always chooses the ready task with the highest priority to run. Common priority-based scheduling methods include time slice round-robin and first-in-first-out. [0003] Task scheduling is mainly implemented by the scheduler. In order to implement the above scheduli...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F7/38G06F9/06G06F9/22G06F9/445G06F12/00
Inventor 孙晓民蔡云鹏
Owner TSINGHUA UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products