A task processing method and a task processing device

A task processing and task technology, applied in the computer field, can solve problems such as low efficiency and achieve the effect of improving the efficiency of task execution

Inactive Publication Date: 2019-04-02
GUANGDONG INSPUR BIG DATA RES CO LTD
View PDF5 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the storage system, there are some tasks that can be processed through asynchronous operations, but executed synchronously, the efficiency is low

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
  • A task processing method and a task processing device
  • A task processing method and a task processing device
  • A task processing method and a task processing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Embodiments of the present application are described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Those skilled in the art know that with the evolution of the graph computing framework and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0025] The embodiment of the present application provides a task processing method, which can insert tasks to be executed into different task queues according to the task types of the tasks to be executed, so that different thread pools execute the tasks to be executed, providing an asynchronous operation The processing method prevents the pending tasks that can be operated asynchronously from being executed synchronously, which improves the efficiency of task execution.

[0026]...

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. The method comprises the following steps: receiving a to-be-executed task; according to the task type of the to-be-executed task, the to-be-executed task is inserted into a corresponding task queue, the task queue is preset, and the task queue is used for placing the to-be-executed task into a corresponding thread pool so as to execute the to-be-executed task; and when a preset condition is met, calling a callback function corresponding to the to-be-executed task to return an execution result of the to-be-executed task. The embodiment of the invention further provides a corresponding task processing device. According to the technical scheme, the to-be-executed task is inserted into the corresponding task queue according to the task type ofthe to-be-executed task, so that the corresponding thread pool executes the to-be-executed task, the to-be-executed task which can be asynchronously operated is prevented from being executed in a synchronous mode, and the task execution efficiency is improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a task processing method and a task processing device. Background technique [0002] The traditional multi-threaded service model adopts the strategy of "instant creation, instant destruction", that is, once a task request arrives, a new thread is created and the thread executes the task, and after the task execution is completed, the thread is destroyed. If the execution time of the task is short and the number of executions is frequent, the thread server will be in a state of continuously creating and destroying threads, which will cause a lot of system overhead. The emergence of thread pool technology solves the system overhead problem caused by the strategy of "instant creation, instant destruction". [0003] In the storage system, some tasks can be processed through asynchronous operations, but are performed synchronously, which is inefficient. Contents of...

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/54G06F9/50G06F9/48
CPCG06F9/4843G06F9/5038G06F9/54
Inventor 史顺玉
Owner GUANGDONG INSPUR BIG DATA RES CO LTD
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