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

Multi-task scheduling method and system based on macro assembly

A technology of task scheduling and scheduling method, which is applied in the field of control to facilitate subsequent maintenance, avoid system deadlock or crash, and solve the problem of saving and restoring

Active Publication Date: 2013-08-21
BEIJING CENTURY REAL TECH CO LTD
View PDF4 Cites 5 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
  • Multi-task scheduling method and system based on macro assembly
  • Multi-task scheduling method and system based on macro assembly

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0033] Step 2. The task scheduling system reads and judges the activation state of the subsequent task of the task. If the subsequent task is in the active state, step 3 is performed. If the subsequent task is not in the active state, it then judges the activation state of the subsequent task. follow-up tasks to the follow-up tasks described;

[0034] Step 3, the task scheduling system reads and judges the sleep time of the subsequent tasks of the task, if the sleep time of the subsequent tasks meets the predetermined requirements, then perform step 4, if the sleep time of the subsequent tasks does not meet the predetermined requirements , the task scheduling sys...

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, in particular to a macro-combination-based multi-task scheduling method and system. Background technique [0002] In the field of control, a real-time operating system (Real Time Operating System, hereinafter referred to as RTOS) is generally used. 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. Essentially, a single CPU core can only execute programs sequentially, and a multitasking system only uses various mechanisms to achieve concurrency from a macro perspective, but sequential execution from a micro perspective. [0003] Generally speaking, RTOS uses system stack and task stack to switch tasks and save the field data generated by related tasks. In the field of control, especially in terms of process control, RTOS is not necessarily the best choice: RTOS-based sy...

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/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