Multi-task scheduling method applicable to embedded software systems

A technology of embedded software and scheduling method, which is applied in the directions of multi-program device, program startup/switching, resource allocation, etc., can solve the problems of limited task length, interrupt time, large memory occupation, large overhead, etc., and achieves structural priority. Reasonable scheduling method, less memory occupation, and easy to achieve effects

Inactive Publication Date: 2016-12-07
ZHENGZHOU AIRCRAFT EQUIP
View PDF8 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the shortcomings are the disadvantages of large overhead (large memory usage), long startup time, and large capital investment, so it often cannot meet the development needs of small and medium-sized embedded software systems.
For embedded software systems without an operating system, the multi-task scheduling is generally implemented by interrupts. This method has the advantages of simple structure and timely response, but the disadvantage is that the number of tasks is limited by the number of interrupts, and the length of tasks is limited. interruption time

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
  • Multi-task scheduling method applicable to embedded software systems
  • Multi-task scheduling method applicable to embedded software systems
  • Multi-task scheduling method applicable to embedded software systems

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] like Figure 1-3 As shown, the multi-task scheduling method applicable to the embedded software system described in the present invention is carried out according to the following steps:

[0016] Set up a two-dimensional task queue. This two-dimensional task queue contains a one-dimensional priority node array, and the value of each priority node is empty or points to a task list composed of ready task nodes of the same priority;

[0017] The one-dimensional priority node array is an array structure, and the task linked list is a linked list structure. The task linked list node contains at least two types of elements, namely: data representing the priority of this task; data pointing to the next linked list node;

[0018] Assume that the two-dimensional task queue contains five pointer-type priority nodes A[0], A[1], A[2], A[3], A[4], corresponding to priorities 1, 2, 3, and 4 respectively , 5, and 5 is the highest priority, 1 is the lowest priority;

[0019] Assume t...

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

The invention discloses a multi-task scheduling method applicable to embedded software systems. The multi-task scheduling method includes that S1, two-dimensional task queues with one-dimensional priority node arrays are set; S2, the one-dimensional priority node arrays are of array structures, task linked lists are of linked list structures, and task linked list nodes contain two types of elements for representing current task priority data and pointing to next linked list node data; S3, the two-dimensional task queues are initialized, priority node values are null if ready tasks with corresponding priority are unavailable, and priority nodes point to ready task linked lists with equal priority if the ready tasks are available; S4, the priority node arrays are searched according to priority sequences from high to low when the two-dimensional task queues are completely initialized, and the tasks which are pointed by the first not-null priority nodes are started; S5, the tasks are suspended at the tails of the certain ready task linked lists according to the priority of the tasks when the tasks are ready, and the certain ready task linked lists are pointed by the corresponding priority nodes. The multi-task scheduling method has the advantages of easiness in implementation and low overhead.

Description

technical field [0001] The invention relates to a multi-task scheduling method for a software system, in particular to a multi-task scheduling method suitable for an embedded software system. Background technique [0002] Realizing multi-task scheduling based on embedded operating system is a method used by many large-scale embedded software systems. The scheduling method of embedded operating system has the advantages of reasonableness, optimization, powerful functions, and no need for designers to compile scheduling algorithms. However, the shortcomings are the disadvantages of large overhead (large memory occupation), long start-up time, and large capital investment, so it often cannot meet the development needs of small and medium-sized embedded software systems. For embedded software systems without an operating system, the multi-task scheduling is generally implemented by interrupts. This method has the advantages of simple structure and timely response, but the disadv...

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): G06F9/48G06F9/50
CPCG06F9/4881G06F9/5038G06F2209/5021
Inventor 吴华娟雷欢齐航
Owner ZHENGZHOU AIRCRAFT EQUIP
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