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

A multi-thread parallel processing method based on multi-thread programming and message queue

A message queue and parallel processing technology, applied in the direction of concurrent instruction execution, machine execution device, etc., can solve the problems that do not conform to the development trend of hardware, single-threaded serial programs cannot show performance, etc.

Active Publication Date: 2015-12-16
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the diversification of computing device architecture and multi-core, the way that software systems only rely on hardware updates to improve performance is no longer in line with the development trend of existing hardware. For example, traditional single-threaded serial programs run on multi-core computing devices. Can not show better performance

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
  • A multi-thread parallel processing method based on multi-thread programming and message queue
  • A multi-thread parallel processing method based on multi-thread programming and message queue
  • A multi-thread parallel processing method based on multi-thread programming and message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0186] combined with figure 1 And attached figure 2 A multi-thread parallel processing method based on pthread and message queue of the present invention is further described in detail.

[0187] A kind of multi-thread parallel processing method based on pthread and message queue of the present invention is to transform the parallelization of traditional single-thread serial software, and utilizes the current popular multi-core CPU computing equipment, pthread multi-thread parallel computing technology and message queue to realize Inter-thread communication technology, a general method to maximize the utilization of hardware computing resources and improve software operating performance.

[0188] The content of the method proposed in the present invention includes: in a single node, create three types of pthread threads, which are respectively read, calculate, and write threads, and the number of various threads can be flexibly configured, open up multiple caches, and create ...

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 provides a multi-thread parallel processing method based on a multi-thread programming and a message queue, belonging to the field of high-performance computation of a computer. The parallelization of traditional single-thread serial software is modified, and current modern multi-core CPU (Central Processing Unit) computation equipment, a pthread multi-thread parallel computing technology and a technology for realizing in-thread communication of the message queue are utilized. The method comprises the following steps of: in a single node, establishing three types of pthread threads including a reading thread, a computing thread and a writing thread, wherein the quantity of each type of the threads is flexible and configurable; exploring multi-buffering and establishing four queues for the in-thread communication; and allocating a computing task and managing a buffering space resource. The method is widely applied to the application field with multi-thread parallel processing requirements; a software developer is guided to carry out multi-thread modification on existing software so as to realize the optimization of the utilization of a system resource; and the hardware resource utilization rate is obviously improved, and the computation efficiency of software and the whole performance of the software are improved.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a multi-thread parallel processing method based on multi-thread programming and message queues. Background technique [0002] Driven by new technologies, hardware systems are undergoing rapid evolution, showing better performance and lower prices, such as the development of traditional CPUs from single-core to multi-core to many-core. However, with the diversification of computing device architecture and multi-core, the way that software systems only rely on hardware updates to improve performance is no longer in line with the development trend of existing hardware. For example, traditional single-threaded serial programs run on multi-core computing devices. Couldn't show better performance. The ultimate goal of hardware development is to promote the performance of application software and thus the performance of the entire computing system. Therefore, the softwar...

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/38
Inventor 吴庆张清赵开勇
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
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