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

Task execution method and device, electronic equipment and storage medium

A task execution and task technology, applied in the computer field, can solve the problems of delayed execution, inability to treat tasks differently, preempting thread resources, etc., and achieve the effect of saving operation and maintenance costs.

Active Publication Date: 2020-10-13
HANGZHOU DT DREAM TECH
View PDF10 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In related technologies, the configured timing tasks are generally executed regularly by calling threads in a created thread pool. Since threads cannot treat tasks differently, all tasks can only fairly seize thread resources
However, a business system contains a large number of timed tasks. If there are too many timed tasks to be executed and thread resources are insufficient, some timed tasks cannot be executed according to the established plan and will be delayed. In this case, task execution The real-time performance cannot be guaranteed

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 execution method and device, electronic equipment and storage medium
  • Task execution method and device, electronic equipment and storage medium
  • Task execution method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0046] The terminology used in the present invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein and in the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and / or" as use...

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 execution method and device, electronic equipment and a storage medium. The task execution method comprises the steps of determining the type of a timing task to be executed; if the to-be-executed timed task is the first-level task, calling an idle thread in a thread pool to execute the to-be-executed timed task under the condition that the execution starting momentof the to-be-executed timed task is reached; if the timing task to be executed is a secondary task, judging whether the first number of the idle threads in the thread pool is greater than the second number of the first-level tasks which are not executed in the plurality of timed tasks or not, and calling the idle threads to execute the timed tasks to be executed under the condition that the firstnumber is greater than the second number and the execution starting time of the timed tasks to be executed is reached. Therefore, the real-time performance of timed task execution can be ensured as much as possible under the condition of insufficient thread resources.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a task execution method, device, electronic equipment, and storage medium. Background technique [0002] The business system will have a variety of timed tasks, for example, the task of clocking in at 9 o'clock every day, the task of counting the working hours of the month, and the task of meeting reminders on Mondays, Tuesdays, and Fridays on weekdays, etc. In related technologies, generally, a configured scheduled task is regularly executed by calling a thread in a created thread pool. Since threads cannot treat tasks differently, all tasks can only preempt thread resources fairly. However, a business system contains a large number of timed tasks. If there are too many timed tasks to be executed and thread resources are insufficient, some timed tasks cannot be executed according to the established plan and will be delayed. In this case, task execution The real-time p...

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/48G06F9/50
CPCG06F9/4881G06F9/485G06F9/5038G06F2209/5021G06F2209/5011G06F2209/5018G06F2209/484Y02D10/00
Inventor 张亮
Owner HANGZHOU DT DREAM 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