Data processing method and device in multi-thread environment

A data processing and thread number technology, applied in the field of big data, can solve problems such as insufficient utilization of thread resources, large number of data rows processed by threads, slow request processing, etc., to reduce the total number of threads, reduce low load, and improve utilization Effect

Active Publication Date: 2019-07-26
SUNING COM CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, as the website traffic increases, when multiple or a large number of requests come at the same time, the threads of the machine will be exhausted. Due to the excessive thread allocation of the operating system, frequent context switching, and unbalanced task allocation of threads will further lead to request processing. become slow
Moreover, due to the unbalanced tasks assigned by the threads, some threads process a large number of data rows and take a long time, while some threads process a small number of rows and take a short time, but in the end, they have to wait until all threads are processed before returning. Thread resources cannot be fully utilized

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
  • Data processing method and device in multi-thread environment
  • Data processing method and device in multi-thread environment
  • Data processing method and device in multi-thread environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Hereinafter, embodiments of the present invention will be described in detail, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refe...

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 embodiment of the invention discloses a data processing method and device in a multi-thread environment, relates to the technical field of big data, and can improve the utilization rate of threadresources and reduce the situations of low load and idle threads. The method comprises the steps that the number of requested lines and the size of sub-packets are acquired, the number of threads is determined by means of the number of requested lines and the size of the sub-packets, the number of requested lines represents the total number of data lines in requested data, and the size of the sub-packets represents the maximum number of request lines processed by each thread; the request data is grouped to obtain at least two task groups; and thread resources are allocated to each task group according to the determined thread number. The method and the device are suitable for processing mass requests in a multi-thread environment.

Description

technical field [0001] The invention relates to the field of big data technology, in particular to a data processing method and device in a multi-thread environment. Background technique [0002] Multi-threading processes a batch of real-time or asynchronous business data in a balanced manner, and allocates a relatively equal amount of business data to each thread in a balanced manner. Wherein, these service data may be service data without mutual dependence or competition, or service data with resource contention. [0003] In the current application solution, when a request has many rows of data, in order to improve the processing speed, multi-thread processing is adopted. If the thread pool threads are sufficient, the program will obtain a thread for each row of data in the thread pool. [0004] However, as the website traffic increases, when multiple or a large number of requests come at the same time, the threads of the machine will be exhausted. Due to the excessive th...

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 Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5038
Inventor 王康龙秦刚钱津津司孝波叶国华
Owner SUNING COM 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