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

Method and device for controlling execution of asynchronous tasks

A technology of asynchronous tasks and task pools, applied in the field of communication, can solve problems such as inefficiency and affect task execution, and achieve the effect of improving execution efficiency and reducing execution time.

Inactive Publication Date: 2016-07-06
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

According to the principle of computer operation, we know that serial is a very inefficient way, and an error in the previous one will affect the execution of the next task

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
  • Method and device for controlling execution of asynchronous tasks
  • Method and device for controlling execution of asynchronous tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] figure 1 It is a flowchart of a method for controlling the execution of asynchronous tasks provided by the present invention. like figure 1 As shown, the methods for controlling the execution of asynchronous tasks include:

[0044] S10: Send task requests corresponding to multiple asynchronous tasks according to the page request;

[0045] S11: Temporarily store the task requests and sort the task requests according to the predetermined order;

[0046] S12: According to a predetermined algorithm, assign more than two task requests to threads corresponding to the task pool to execute corresponding asynchronous tasks;

[0047] Wherein, there are at least two threads in the task pool.

[0048] In a specific implementation, the above steps are jointly completed through a cloud platform and an interface, wherein the cloud platform is a resource integration platform for managing various virtualized resources. By adding a variety of physical resources, virtualizing the phy...

Embodiment 2

[0064] figure 2 It is a structural diagram of an apparatus for controlling the execution of asynchronous tasks provided by the present invention. like figure 2 As shown, the means for controlling the execution of asynchronous tasks include:

[0065] The task request module 10 is configured to send task requests corresponding to multiple asynchronous tasks according to the page request;

[0066] Task stack 11, for temporarily storing task requests and sorting task requests according to a predetermined order;

[0067] The task assignment module 12 is configured to assign more than two task requests to threads corresponding to the task pool 13 according to a predetermined algorithm to execute corresponding asynchronous tasks;

[0068] Wherein, there are at least two threads in the task pool 13 .

[0069] In a specific implementation, the device for controlling the execution of asynchronous tasks is jointly completed through a cloud platform and an interface, wherein the clo...

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 method for controlling the execution of asynchronous tasks, comprising: sending a plurality of task requests corresponding to the asynchronous tasks according to a page request; temporarily storing the task requests and sorting the task requests according to a predetermined order; More than two task requests are assigned to threads corresponding to the task pool to execute corresponding asynchronous tasks; wherein, there are at least two threads in the task pool. The method can realize the parallel execution of a plurality of asynchronous tasks, reduce the execution time of the tasks, and improve the execution efficiency. In addition, the invention also discloses a device for controlling the execution of asynchronous tasks.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and device for controlling the execution of asynchronous tasks. Background technique [0002] In the cloud platform, a functional operation is often accompanied by a task. Basic functions such as adding, deleting, modifying and checking, etc., these functions are defined by the concept of tasks. Such as deleting a resource pool, modifying the name of a virtual machine, etc., are called a task. Some of these tasks respond immediately, such as deleting operations and modifying names. These tasks are called immediate tasks. In the cloud platform, there are more operations such as creating virtual machines and creating resource pools. These tasks cannot be completed immediately, but require a certain amount of time and the time is uncertain. For example, it may take an hour or more to create a virtual machine and install the system. These tasks do not return resul...

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 INSPUR BEIJING ELECTRONICS INFORMATION IND
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