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

Message storage method and message reading method based on shared memory

A technology for storing messages and messages, applied in communication between programs, instruments, multi-program devices, etc., can solve the problems of "real-time" performance, high learning and maintenance costs, and inflexible configuration, etc., to improve efficiency and configure Flexible, achieve high-speed transfer effect

Pending Publication Date: 2020-01-31
亚信创新技术(南京)有限公司
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention aims to solve the problems that the existing process interaction mode cannot meet the "real-time" performance under the requirement of high concurrency and low delay, the configuration is not flexible enough, the use is inconvenient, and the cost of learning and maintenance is high, thereby providing a Message storage method and message reading method based on shared memory

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 storage method and message reading method based on shared memory
  • Message storage method and message reading method based on shared memory
  • Message storage method and message reading method based on shared memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] This embodiment provides a storage space. First, by applying for storage space, the storage space is divided into a message control area and a message storage area. The message storage area is used to store data and includes multiple storage sub-queues. The message control area is used to store Record the array of read and write information of the storage subqueue, including storage subqueue capacity, write process / thread write message sequence, read process / thread read message sequence, sub-message size, storage subqueue start address and other information . Such as figure 1 As shown, assuming that there are process 1 and process 2 now, the two processes go to the user-level page table through the virtual address space, and then map to the same memory area of ​​physical memory through the user-level page table, and realize inter-process communication through the shared memory area .

[0040] Multiple storage sub-queues are stored in the storage space, and are stored ...

Embodiment 2

[0047] This embodiment provides a message storage method, which can be used in the billing system of the telecommunications industry. It is necessary to realize the real-time billing requirements of high concurrency and low delay, and realize the storage of messages in the storage space described in Embodiment 1. First, the Store the message in the storage space, and then determine the start of the storage sub-queue by obtaining the length of the message to be stored, the start address of the storage sub-queue corresponding to the stored message, and the message storage location number of the storage sub-queue address offset, and then determine the storage address of the message, and store the message to be stored, such as Figure 4 As shown, the message storage method includes the following steps:

[0048] S21: Obtain the length of the message to be stored.

[0049] S22: Obtain the start address of the storage sub-queue corresponding to the message to be stored and the messa...

Embodiment 3

[0073] This embodiment provides a method for reading a message, which is used to read the message stored by the method in Embodiment 2, such as Figure 8 shown, including:

[0074] S31: Obtain the length of the message to be read. The starting position of the storage subqueue of the message to be read in the memory space is further obtained through the length of the message to be read.

[0075] S32: Obtain the start address of the storage subqueue corresponding to the message to be read and the position number of the message to be read according to the array in the message control area. The starting address is the memory location corresponding to the storage subqueue where the message is located, and is used to determine the storage address corresponding to the message to be read. The location number of the message to be read is the location number in the storage subqueue where the message is to be read. It is used to correspond to the storage address of the message in the s...

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 storage method and a message reading method based on a shared memory, and provides a storage space, a message storage method and a message reading method. A message storage method is used for storing a message to be stored in a storage space, the storage space comprises a message control area and a message storage area, the message storage area is used for storingdata, the message storage area comprises a plurality of storage sub-queues, and the message control area is used for storing an array for recording read-write information of the storage sub-queues. The message reading method is used for reading messages stored in a storage space according to a message storage method, high-speed interaction of the messages is achieved in a memory copying mode in the message storage and reading process, and the problems that in an existing communication interaction technology, real-time performance cannot be met under the requirements for low message transmission efficiency, high concurrency and low delay, configuration is not flexible, and learning and maintenance cost is high are solved.

Description

technical field [0001] The invention relates to the support field of the telecommunication industry, in particular to a message storage method and a message reading method based on a shared memory. Background technique [0002] Telecommunication is the main form of communication now. With the increasingly fierce competition among the domestic telecommunications industry, telecom operators are paying more and more attention to the operation of the business support system. As the core of the telecommunications business support system, the telecommunications billing system, its accuracy It is directly related to the quality of customer service and the revenue of telecom operators. At present, the interaction between multiple processes in the billing system of the telecommunications industry is mainly through file, database, and message middleware. The file interaction method is to write data to the file server through the previous process and store it on the physical disk, and...

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/54
CPCG06F9/544G06F9/546
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