Message queue based write and read method and system of shared memory

A message queue and shared memory technology, applied in the direction of multi-programming devices, etc., can solve problems such as inability to make full use of resources, thread blocking, and increased resource consumption.

Active Publication Date: 2014-03-19
BEIJING QIANXIN TECH
View PDF4 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, locking will cause only one thread to work forever to perform write operations or read operations, which means that there will

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
  • Message queue based write and read method and system of shared memory
  • Message queue based write and read method and system of shared memory
  • Message queue based write and read method and system of shared memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0346] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0347] In order to enable those skilled in the art to better understand the present invention, the related technologies involved in the present invention are briefly described below.

[0348] A message queue is a container for storing messages during message transmission. The so-called message is a data unit for transmission. Messages can be as simple as just containing text strings, or more complex and may contain embedded objects...

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 message queue based write and read method and system of a shared memory. The write method of the shared memory comprises the steps as follows: the message queue is adopted to execute the operation of multi-threaded in-queue push and single-threaded out-queue pop; and data of the single-threaded out-queue pop is written in the shared memory. With the adoption of the message queue based write and read method and system of the shared memory, the problem of blockage during communication between threads is solved, the resource consumption is reduced, system resources are sufficiently used, and the processing speed is increased, so that the throughput capacity of a server is improved.

Description

technical field [0001] The present application relates to the technical field of computer communication, in particular to a method for writing shared memory based on message queues, a method for reading shared memory based on message queues, a method for reading and writing shared memory based on message queues, and a method for reading and writing shared memory based on message queues. A shared memory writing system based on message queues, a shared memory reading system based on message queues, and a shared memory reading and writing system based on message queues. Background technique [0002] Throughput refers to the sum of the amount of data transmitted on the network during a performance test. For interactive applications, the throughput index reflects the pressure on the server. In the test of capacity planning, the throughput index shows the load capacity at the system level. With the continuous growth of user traffic and the continuous accumulation of enterprise da...

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
Inventor 蔡东赟王东玉
Owner BEIJING QIANXIN TECH
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