A data processing method, device and electronic equipment
A data processing device and data processing technology, applied in the computer field, can solve the problems of time consumption, high reading times, and high frequency of context switching, and achieve the effects of reducing resources, improving processing efficiency, and reducing the frequency of context switching
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0077] Embodiment 1. A data processing method, such as Figure 4 As shown, including steps S110-S120:
[0078] S110. Put the data reading task generated by the partition into the task queue;
[0079] S120. When the number of reading threads in the thread pool does not reach the predetermined upper limit, extract data reading tasks from the task queue, create reading threads according to the extracted tasks and put them into the thread pool; wherein, the threads The pool is used to hold the read threads that take up processing resources in turn.
[0080] In this embodiment, when there are many partitions and the throughput of the partitions is quite different, the data generated by the partitions can be efficiently read and the CPU resources can be reasonably used. On the one hand, this embodiment controls the number of threads that preempt CPU resources through the task queue, so not all data reading tasks of each partition can occupy CPU resources. Only data reading tasks ...
Embodiment 2
[0128] Embodiment 2. A data processing device, such as Figure 8 shown, including:
[0129] Queue management module 81, is used for putting the data reading task that partition produces into task queue;
[0130] The extraction module 82 is used to extract data reading tasks from the task queue when the number of reading threads in the thread pool does not reach a predetermined upper limit, and set up reading threads according to the extracted tasks and put them into the thread pool; wherein , the thread pool is used to store reading threads that take up processing resources in turn.
[0131] In this embodiment, the queue management module 81 is a part responsible for adding data reading tasks to the task queue in the above-mentioned data processing device, and may be software, hardware, or a combination of both.
[0132] In this embodiment, the extracting module 82 is the part responsible for generating reading threads according to the data reading tasks in the task queue in...
Embodiment 3
[0151] Embodiment 3. An electronic device for data processing, including: a memory and a processor;
[0152] The memory is used to store a program for data processing; when the program for data processing is read and executed by the processor, the following operations are performed:
[0153] Put the data reading tasks generated by the partition into the task queue;
[0154] When the number of reading threads in the thread pool does not reach the predetermined upper limit, extract data reading tasks from the task queue, set up reading threads according to the extracted tasks and put them into the thread pool; wherein, the thread pool uses It is used to store the reading threads that take up processing resources in turn.
[0155] When the program for data processing in this embodiment is read and executed by the processor, the operations performed correspond to steps S110-S120 in the first embodiment. For other details of the operations performed by the program, refer to the fi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com