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

Task scheduling method and system based on task stealing

A task scheduling and task technology, applied in the direction of multi-program device, program control design, instrument, etc., can solve the problem of poor locality of the program, achieve the effect of reducing delay and realizing load balancing

Active Publication Date: 2017-09-29
HUAZHONG UNIV OF SCI & TECH
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the basic block where the dependent task is located begins to execute, the execution of a large number of irrelevant tasks in the basic block where the dependent task is located will cause the required data in the cache to be swapped out, resulting in poor program locality

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
  • Task scheduling method and system based on task stealing
  • Task scheduling method and system based on task stealing
  • Task scheduling method and system based on task stealing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0053] like figure 1 Shown is a schematic flowchart of a task scheduling method based on task stealing disclosed in the embodiment of the present invention, including the following steps:

[0054] (1) Construct task dependency graph: describe the overall computing task as a task dependency graph composed of subtask nodes and dependent edges between subtask nodes, and register dependent nodes as...

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 task scheduling method and system based on task stealing. The method comprises the steps that a task dependence graph is constructed, and a dependence point serves as a callback function to be registered into a callback container of a depended point; a lock-free double-end queue is allocated to threads in a thread pool respectively and is emptied, and root nodes are put at the bottoms of the lock-free double-end queues of the threads in a polling mode; if the lock-free double-end queues of the threads are not empty, the nodes are taken out of the bottoms of the lock-free double-end queues and are executed; if the lock-free double-end queues of the threads are empty, the nodes are stolen from the tops of the lock-free double-end queues of other threads, the stolen nodes are pressed into the bottoms of the lock-free double-end queues of the threads and are taken out for execution; after execution of all node tasks is completed, the in-degrees of the nodes in the task dependence graph are recovered to original values, and blockage to a main thread is ended. The task scheduling method and the system are oriented to large task-level parallel application programs, and the performance of traditional task-level parallel application programs can be effectively improved.

Description

technical field [0001] The invention belongs to the technical field of computer parallel programming, and more specifically relates to a task scheduling method and system based on task stealing. Background technique [0002] The transistor size and power consumption, which are constantly approaching the physical limit, severely limit the development of single-core processors in computers. It is no longer possible to improve program performance just by waiting for chip manufacturers to launch new processors as before. To further improve application performance, only rely on the method of integrating multiple cores into a single CPU and parallelizing the application. The era of single-core serial is over, and programmers are beginning to move towards the era of multi-core parallelism. [0003] Traditional parallel programming models (including MPI and earlier versions of OpenMP) are intended only for expert-level, experienced programmers, or applications that can only adapt t...

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
IPC IPC(8): G06F9/48G06F9/50
CPCG06F9/4881G06F9/5038G06F9/5083G06F2209/483G06F2209/485G06F2209/486G06F2209/508
Inventor 金海李陈希廖小飞石翔
Owner HUAZHONG UNIV OF SCI & TECH
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