Data processing method and device
A data processing and data technology, applied in the computer field, can solve problems such as thread deadlock and excessive number of threads, and achieve the effects of fast processing, improved computing performance, and reasonable use of computing resources
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2019-12-03
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a data processing method and device. Background technique
[0002] A thread is the smallest unit in a program and a single sequential flow of control in a program. Running two or more threads simultaneously in a single program to complete different data processing, this data processing method is called multi-thread processing.
[0003] At present, in multi-thread processing, when the processor receives a large amount of data to be processed, the data to be processed is split according to a fixed amount to obtain at least one set of data; multiple threads are created according to the data to be processed, and then Multiple threads are allocated so that multiple threads correspond to each set of data, and finally, the data to be processed is processed by the thread in the running state.
[0004] However, when the number of threads created in multi-thre...
Examples
Embodiment Construction
[0025] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0026] Please refer to figure 1 , which shows a flowchart of a data processing method provided by an embodiment of the present invention. The data processing method can be applied to a server with multi-thread processing capability, and the server includes a processor and a memory. The data processing methods include:
[0027] Step 102, receiving data to be processed.
[0028] Optionally, the processor receives data to be processed. Optionally, the data is streaming data, such as meteorological data observed by meteorological observation stations at different times and locations. The data is divided into multiple data according to different times and different locations.
[0029] Step 104, create an allocation thread in a single t...