Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for dynamically adjusting threads

A dynamic adjustment and thread technology, applied in the field of thread management, can solve problems such as limited number of concurrency, fast processing speed, and overall system performance impact, so as to avoid the increase of machine load and ensure the effect of processing speed

Active Publication Date: 2019-11-22
PING AN TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing multi-threading method, a fixed number of threads is generally used. When executing tasks in large batches, if the number of fixed threads is too high, the load on the machine will be increased, and the overall performance of the system will be affected; if the number of fixed threads is too low, the number of concurrent tasks will be limited. The efficiency is too low to guarantee a faster data processing speed
Therefore, the fixed number of threads in the existing multi-threading method cannot perform tasks at the fastest speed without affecting the overall performance of the system under reasonable and efficient utilization of machine loads.

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
  • Method and device for dynamically adjusting threads
  • Method and device for dynamically adjusting threads

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0033] The invention provides a method for dynamically adjusting threads.

[0034] refer to figure 1 , figure 1 It is a schematic flowchart of an embodiment of a method for dynamically adjusting threads in the present invention.

[0035] In one embodiment, the method for dynamically adjusting threads includes:

[0036] Step S10, reading a preset amount of buffered data from the input data file to be processed into a preset data buffer;

[0037] In this embodiment, when a large batch of data needs to be executed, because the data flow is too large, it is impossible to read all the large batch of data to be executed into the memory. Therefore, a data buffer is preset for A preset amount of buffered data is read from a large batch of input data files and cached so that the current thread can directly read the buffere...

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 method for dynamically regulating threads. The method comprises the following steps: reading a preset amount of buffer data into a preset data buffer area from an input data file to be processed; monitoring current execution efficiency of threads for the buffer data in the data buffer area; dynamically regulating the number of threads for executing the buffer data in the data buffer area on the basis of the execution efficiency. The invention also discloses a device for dynamically regulating the threads. According to the method and the device, the data processing speed can be ensured, machine load increase caused by excessive threads can also be avoided, and the input data file to be processed is executed at the highest speed without influence on overall system performance.

Description

technical field [0001] The invention relates to the technical field of thread management, in particular to a method and device for dynamically adjusting threads. Background technique [0002] At present, multi-thread concurrency technology is widely used in more and more systems. Although the use of multi-thread does not improve CPU efficiency, it greatly improves user interaction and responsiveness. In the existing multi-threading method, a fixed number of threads is generally used. When executing tasks in large batches, if the number of fixed threads is too high, the load on the machine will be increased, and the overall performance of the system will be affected; if the number of fixed threads is too low, the number of concurrent tasks will be limited. The efficiency is too low to guarantee a faster data processing speed. Therefore, the fixed number of threads in the existing multi-threading method cannot execute tasks at the fastest speed without affecting the overall p...

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 Patents(China)
IPC IPC(8): G06F9/46
Inventor 毛皓彭利荣刘兴翚岑海菊邹文涛李玲欧人杰张博文
Owner PING AN TECH (SHENZHEN) CO LTD