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

Task scheduling method and device and electronic equipment

A task scheduling and task technology, applied in the field of data processing, can solve problems such as program downtime

Active Publication Date: 2021-08-06
北京轻松筹信息技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, in the case of performing a certain task, technicians need to confirm the current resource situation, and then determine whether the task can be performed. If the task is performed without reporting, it may be because there are not enough resources to support the task execution. In the event of a program crash

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach 1

[0061] Detecting whether a task is included in the third task block; the third task block stores a task that changes from the executing state to the suspended state;

[0062] If the third task block contains a task, calling the second task from the third task block to the second task block;

[0063] If the number of second tasks transferred from the third task block is less than the number of tasks that need to be scheduled to the second task block, the second task is transferred from the fifth task block to the second task block; The number of tasks that need to be scheduled to the second task block is determined according to the preset maximum concurrency and the number of tasks in the execution state included in the second task block.

[0064] In this embodiment, when the number of tasks being executed in the second task block is less than the preset maximum concurrency, the tasks are called according to the priority of the third task block and the fifth task, that is, the ...

Embodiment approach 2

[0067] Detect whether tasks are included in the third task block; stored in the third task block is a task that changes from the executing state to a suspended state; if the third task block contains tasks, call from the third task block Fetch the second task to the second task block.

[0068] Detect whether tasks are included in the third task block; stored in the third task block is a task that changes from the executing state to the suspended state; if the third task block does not include tasks, detect the task in the fifth task block Whether a task is included; if the fifth task block includes a task, call the second task from the fifth task block to the second task block.

[0069] In this embodiment, due to the continuous execution of the detection process of S102, in order to improve efficiency and reduce the complexity of calculation, after the tasks are transferred from the third task block, there is no need to detect that the number of second tasks to be called is le...

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 device and electronic device. The method comprises the steps: after a task request of a first task is received, scheduling the first task to a fifth task block to wait for scheduling, and continuously detecting whether the number of tasks being executed in a second task block is smaller than the preset maximum concurrency or not; if the concurrency is smaller than the preset maximum concurrency, calling a second task from other task blocks to a second task block, and executing the second task, so that the received tasks are firstly stored in a fifth task block for queuing, and when the number of the tasks being executed in the second task block is smaller than the preset maximum concurrency, calling a task from other task blocks. Therefore, according to the embodiment, through a queuing mechanism and a maximum concurrency control mechanism, reasonable utilization of resources is guaranteed, the situation of downtime due to the fact that the resources are exceeded is avoided, and the probability of successful task execution is improved.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a task scheduling method, device and electronic equipment. Background technique [0002] At present, when performing a certain task, technicians need to confirm the current resource situation, and then determine whether the task can be performed. If the task is performed without reporting, it may be because there are not enough resources to support the task. A program crash occurs. Contents of the invention [0003] In view of this, the embodiment of the present invention discloses a task scheduling method, device, and electronic equipment. Through the queuing mechanism and the maximum concurrency control mechanism, in addition to ensuring the reasonable utilization of resources, it also avoids the occurrence of downtime caused by exceeding resources. The situation of the machine increases the probability of successful task execution. [0004] The embodiment of the present inve...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products