A task processing method and device
Patent Information
- Authority / Receiving Office
- CN ยท China
- Current Assignee / Owner
- HANGZHOU DPTECH TECH
- Publication Date
- 2019-04-26
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The embodiments of this specification relate to the field of network communication technologies, and in particular, to a task processing method and device. Background technique
[0002] In the producer-consumer mode of the prior art, usually one producer thread puts tasks into a queue, and multiple consumer threads take out tasks from the queue and execute them. In order to avoid data access exceptions caused by multiple threads of producers and consumers operating on the queue at the same time, generally when one of the threads operates on the queue, it is necessary to add a mutex to the queue.
[0003] However, in the task processing scheme of the prior art, each time a certain thread puts a task into and out of the queue, other threads need to wait, which makes task distribution and processing efficiency low. Based on the existing technology, a more efficient task processing solution is required. Contents of the invention
[0004] In view of thi...