Multi-thread task processing method and device

A task processing and multi-threading technology, which is applied in multi-programming devices, transaction processing, electronic digital data processing, etc., can solve problems such as low efficiency of processing business, long time of processing a single business, and business failure, so as to increase the probability of success , Minimize consumption and improve efficiency

Inactive Publication Date: 2016-06-22
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 38 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the current task processing method uses a single thread to execute multiple tasks in a single business in series. When one task succeeds, another task is executed. If one task fails to execut...

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
  • Multi-thread task processing method and device
  • Multi-thread task processing method and device
  • Multi-thread task processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0035] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0036] figure 1 An exemplary system architecture 100 to which embodiments of the multi-thread task processing method or the multi-thread task processing apparatus of the present application can be applied is shown.

[0037] Such as figure 1 As shown, the system architectur...

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 multi-thread task processing method and a multi-thread task processing device. The method comprises the following steps: a task manager receives business information, adds an entity of task information included in the business information to a task pool, calls a management module to process the entity in the task pool, and calls the management module to obtain a result that the management module processes the entity in the task pool; the management module calls an execution module to process the entity in the task pool, and calls a monitoring module to obtain the result that the execution module processes the entity in the task pool; the execution module obtains the entity from the task pool, calls a thread, a lock as well as a task processing function of the obtained entity, processes the obtained entity, and notifies the processed result to the monitoring module; and the monitoring module records a successful label or a failed label according to the processed result, and sends the successful label or the failed label to the management module. Therefore, the method and the device disclosed by the invention realize execution of the entity with multiple task information in a multi-thread parallel manner, the time for processing a single business is relatively short, and the efficiency of processing the business is improved.

Description

technical field [0001] The present application relates to the technical field of computers, in particular to the technical field of computer task processing, and in particular to a multi-thread task processing method and device. Background technique [0002] The current task processing method, for the entity of the task information included in the business information received from the user, adopts the traditional single-thread serial execution: the operation of a single atomic business (such as refund business, etc.) is in a completely independent state, The success or failure of the entire atomic business process is closely related to the execution results of multiple tasks (such as freezing the fund pool task, deduction task and refund task, etc.), that is, if a task execution fails, the entire atomicity The process of the business (such as the process of the refund business) fails; if all tasks are executed successfully, the process of the atomic business succeeds. [0...

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/46G06F17/30
CPCG06F9/466G06F16/2343
Inventor 黄帅
Owner BEIJING BAIDU NETCOM SCI & TECH 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