Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Processing method and device based on Java multithreading

A processing method and technology of a processing device, which are applied in directions such as multi-programming devices, can solve the problem that data processing does not take into account the sequence of data with the same user ID.

Pending Publication Date: 2020-09-25
北京思特奇信息技术股份有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the reminder of business processing data, the high concurrency requirements of the system, the existing multi-threaded processing, each time as the amount of data increases to provide efficiency, multiple processes are performed, and data processing does not take into account The sequence of the same user id data

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
  • Processing method and device based on Java multithreading
  • Processing method and device based on Java multithreading

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The principles and features of the present invention will be described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0040] Such as figure 1 Shown, a kind of processing method based on Java multi-thread provided for the embodiment of the present invention, this method comprises:

[0041] S1, extract a piece of data to be processed from the full data set; the full data set is a temporary data set, which is used for the full storage data set;

[0042] S2, acquiring the user ID of the data to be processed;

[0043] It should be noted that, the implementation of user unique identifier binding can be achieved by using the java thread pool ThreadPoolExecutor pool class, where corePoolSize: specifies the number of threads in the thread pool, and its number determines whether the added task is to open up a new thread to execute, or ...

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 processing method and device based on Java multithreading. The method comprises the following steps: extracting a piece of to-be-processed data from the full data set; obtaining a user ID identifier of the to-be-processed data, in user data sets, adding the to-be-processed data into an independent thread of the user ID identifier according to the user ID identifier, processing the to-be-processed data identified by the user ID in the independent thread is processed, so that the high-concurrency processing of a large amount of data is realized, the same user data is ensured to be processed in one thread, the data can be sequentially uploaded by the same user id, and the reasonable utilization of resources is realized through multi-process management and control.

Description

technical field [0001] The invention relates to the field of batch data processing, in particular to a processing method and device based on Java multithreading. Background technique [0002] With the reminder of business processing data, the high concurrency requirements of the system, the existing multi-threaded processing, each time as the amount of data increases to provide efficiency, multiple processes are performed, and data processing does not take into account Same as the sequence of user id data. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a processing method and device based on Java multithreading for the deficiencies of the prior art. [0004] The technical scheme that the present invention solves the problems of the technologies described above is as follows: [0005] A processing method based on Java multithreading, comprising: S1, extracting a piece of data to be processed in the full data se...

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
IPC IPC(8): G06F9/46
CPCG06F9/46
Inventor 曲长城
Owner 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products