Task scheduling method and system and electronic equipment

A task scheduling and task technology, applied in the direction of program control design, electrical digital data processing, program start/switching, etc., can solve the problem of low execution efficiency of specific task sequences, shorten the waiting time for execution, improve execution efficiency, and prioritize Effect of treatment

Pending Publication Date: 2021-11-26
竞技世界(北京)网络技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In some scenarios, there is a requirement to complete a specific task sequence. Based on this, if the execution of a task in a specific task sequence depends on the execution of at least one other task (the other task does not belong to the specific task sequence),

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 and electronic equipment
  • Task scheduling method and system and electronic equipment
  • Task scheduling method and system and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0047] In order to better understand the present application, some terms involved in the embodiments of the present application are explained first.

[0048] Task: refers to a program in the computer that can complete a specific function.

[0049] Task system: A subsystem program that can be used to execute multiple associated or unrelated tasks concurrently in a computer, mainly through multi-threading to improve the execution efficiency of tasks.

[0050] Task dependency: It mean...

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 embodiment of the invention discloses a task scheduling method and system and electronic equipment. A waiting task sequence and an unconnected task sequence are sent to a connecting thread through a logic thread; the tasks in the unconnected task sequence are tasks which are established by the logic thread and do not have dependent tasks; a target task is inquired in the unconnected task sequence through the connecting thread, the target task is a task in the unconnected task sequence, and the post-task comprises at least one uncompleted task in the waiting task sequence; if the target task is queried, the target task is sent to the logic thread through a connecting thread; and the target task is inserted into a logic thread task lockless queue through the logic thread, so that the connecting thread and the working thread steal and execute the target task. Through interaction of the logic thread and the connecting thread, the purpose of preferentially processing the waiting task sequence is achieved, so that the execution waiting time of the waiting task sequence is shortened, and the execution efficiency of the waiting task sequence is improved.

Description

technical field [0001] The present application relates to the technical field of computer applications, and more specifically, to a task scheduling method, system and electronic equipment. Background technique [0002] In a multi-threaded concurrent task scheduling system that supports task dependencies, if the execution of one task A depends on the execution of another task B, then task A cannot be executed until task B is completed. In some scenarios, there is a need to execute a specific task sequence. Based on this, if the execution of a task in a specific task sequence depends on the execution of at least one other task (the other task does not belong to the specific task sequence), then the specific task sequence The task needs to wait for at least one of the above-mentioned other tasks to be executed before it can be executed, and when other tasks are executed is uncertain, resulting in low execution efficiency of a specific task sequence. Contents of the invention ...

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/48
CPCG06F9/4881
Inventor 何灿
Owner 竞技世界(北京)网络技术有限公司
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