Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A multi-task scheduling method and system based on macro combination

A technology of task scheduling and scheduling method, which is applied in the field of control to achieve the effect of facilitating subsequent maintenance, avoiding system crashes, and avoiding system deadlock or crashes

Active Publication Date: 2016-03-23
BEIJING CENTURY REAL TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

To improve the deficiencies of traditional RTOS, the present invention provides a multi-task scheduling method and system based on macro combination

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
  • A multi-task scheduling method and system based on macro combination
  • A multi-task scheduling method and system based on macro combination

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The embodiment of the present invention provides a multi-task scheduling method based on macro combination, such as figure 1 Shown:

[0030] Step 1. When the task is executed to a predetermined pacing point, the task scheduling system saves the subsequent pacing point of the task and loads the sleep time;

[0031] Step 2. The task scheduling system reads and judges the activation state of the subsequent tasks of the task. If the subsequent task is active, then execute step 3. If the subsequent task is not active, then it judges all The follow-up task of the follow-up task;

[0032] Step 3. The task scheduling system reads and judges the sleep time of the subsequent task of the task, and if the sleep time of the subsequent task meets the predetermined requirement, execute step 4, if the sleep time of the subsequent task does not meet the predetermined requirement , The task scheduling system then judges the continuation of the subsequent tasks in the task sequence;

[0033] Ste...

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 relates to a multi-task scheduling method and system based on macro assembly. The method comprises the steps that when a task is executed to a scheduled step point, a task scheduling system stores a subsequent step point of the task and loads dormancy time, the task scheduling system reads and judges an activated state and the dormancy time of a subsequent task, if the activated state and the dormancy time meet demands, the subsequent task is executed, and if any one of the activated state and the dormancy time can not meet the demands, the task scheduling system continues to judge the subsequent task until the task is executed to a stop point and not scheduled by the task scheduling system. According to the multi-task scheduling method and system based on the macro assembly, functions of the system are realized through the macro assembly, task stacks are not used, all the tasks and the system share one stack, great memory requirements when a large number of parallel tasks exist in the system are avoided, and the risk that the system crashes due to the fact that potential task stacks overflow in the actual use of RTOS is effectively avoided. The multi-task scheduling method based on the macro assembly is suitable for an industry control system, especially suitable for being used in industry flow type control and well solves the problem that save and return of a control process are difficult when power fails suddenly.

Description

Technical field [0001] The present invention relates to the field of control, and in particular to a multi-task scheduling method and system based on macro combination. Background technique [0002] The real-time operating system (RealTimeOperatingSystem, hereinafter referred to as RTOS) is generally used in the control field. The basic idea of ​​this type of system implementation is to establish an artificial stack to save task data and switch register contents to achieve concurrent execution of tasks. In essence, a single CPU core can only execute programs sequentially, and a multitasking system only uses various mechanisms to achieve concurrency at a macro level, but still executes sequentially at a micro level. [0003] Generally speaking, RTOS uses system stack and task stack to switch tasks and save field data generated by related tasks. In the field of control, especially in process control, RTOS is not necessarily the best choice: RTOS-based systems need to implement task...

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 Patents(China)
IPC IPC(8): G06F9/46
Inventor 唐思超
Owner BEIJING CENTURY REAL TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products