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

Task processing method and device, electronic equipment and storage medium

A task processing and task technology, applied in the computer field, can solve problems such as long execution time, task scheduling blocking, resource equipment performance load, etc.

Pending Publication Date: 2022-03-11
挂号网(杭州)科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, when the operating system performs task scheduling, the corresponding task scheduling period is generally set according to the execution time required for different scheduled tasks, but due to network reasons or performance differences of resource devices, the actual execution time of the scheduled task may appear It is longer than the task scheduling time, and at this time, the system may issue new scheduling tasks, resulting in task scheduling blocking, causing performance load problems on resource devices

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a schematic flow chart of a task processing method provided by Embodiment 1 of the present invention. This embodiment is applicable to avoid task scheduling blocking when resource equipment executes scheduling tasks. The method can be executed by a task processing device, which It may be implemented in the form of software and / or hardware, and the hardware may be an electronic device, such as a mobile terminal or a PC.

[0031] Such as figure 1 As shown, the method includes:

[0032] S110. Determine a task execution instruction corresponding to the target task to be executed, and send the task execution instruction to the target resource device; wherein, the task execution instruction includes a target resource device that executes the target task to be executed and task scheduling cycle.

[0033] Wherein, the target to-be-executed task may be understood as a task to be scheduled for execution when the operating system performs task scheduling. The ta...

Embodiment 2

[0051] As an optional embodiment of the above embodiment, figure 2 It is a schematic flowchart of a task processing method provided in Embodiment 2 of the present invention. Optionally, refine the processing result of determining the target task to be executed based on the task thread and the task scheduling period .

[0052] Such as figure 2 As shown, the method includes:

[0053] S210. Determine a task execution instruction corresponding to the target to-be-executed task, and send the task execution instruction to the target resource device; wherein, the task execution instruction includes a target resource device that executes the target to-be-executed task and task scheduling cycle.

[0054] S220. Receive the task execution instruction based on the target resource device, and start a task thread corresponding to the target task to be executed.

[0055] S230. Determine the duration of the task thread based on the target monitoring function.

[0056] Among them, the t...

Embodiment 3

[0069] In a specific example, such as image 3 As shown, the scheduling center can assign each scheduling task to a corresponding resource device, and the task thread in the resource device processes the scheduling task. Before allocating scheduled tasks, the scheduling center may query the scheduling period T of the target task to be executed in the task_info table (ie, the first data table). Then the dispatching center selects the execution node (i.e., the target resource device) from the task_executor_list table (i.e., the second data table) to send a thread establishment request, which includes the task scheduling cycle T corresponding to the target task to be executed in the thread establishment request , and then after receiving the request, the target resource device can create a FutureTask thread (that is, a task thread) to process the target task to be executed. In the process of processing the target pending task, FutureTask.get(T) in the FutureTask thread (that is,...

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 processing method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a task execution instruction corresponding to a target to-be-executed task, and transmitting the task execution instruction to target resource equipment; wherein the task execution instruction comprises target resource equipment for executing the target to-be-executed task and a task scheduling period; receiving the task execution instruction based on the target resource equipment, and starting a task thread corresponding to the target to-be-executed task; and determining a processing result of the target to-be-executed task based on the task thread and the task scheduling period. The problem that the target resource equipment possibly needs to execute a plurality of scheduling tasks at the same time when the task thread does not complete the tasks in the task scheduling period is solved, and the effect that the scheduling center reasonably allocates the tasks to the resource equipment according to the current task state of the target resources is achieved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technologies, and in particular, to a task processing method, device, electronic equipment, and storage medium. Background technique [0002] Task scheduling is an important part of the operating system, which can directly affect the real-time performance of the operating system. [0003] At present, when the operating system performs task scheduling, the corresponding task scheduling period is generally set according to the execution time required for different scheduled tasks, but due to network reasons or performance differences of resource devices, the actual execution time of the scheduled task may appear It is longer than the task scheduling time, and at this time, the system may issue new scheduling tasks, resulting in task scheduling blocking, causing performance load problems on resource devices. [0004] In order to solve the problem of task scheduling blocking in the o...

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