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

Multi-process communication method based on shared memory backup mechanism

A technology of shared memory and communication method, which is applied in the field of multi-process communication based on the shared memory backup mechanism, which can solve the problems of reduced communication efficiency and shared resources that cannot achieve resource mutual exclusion, so as to reduce data copying, improve information transmission efficiency and communication Real-time, the effect of decoupling behavior

Pending Publication Date: 2021-06-25
CHONGQING LANDSHIP INFORMATION TECH CO LTD
View PDF12 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a multi-process communication method based on a shared memory backup mechanism for the defects of the prior art, which solves the problem that shared resources cannot realize resource mutual exclusion under multi-user status, and under multi-module blocking status, communication The problem of reduced efficiency

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
  • Multi-process communication method based on shared memory backup mechanism
  • Multi-process communication method based on shared memory backup mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0021] A multi-process communication method based on a shared memory backup mechanism provided by the present invention ensures the mutual exclusion of shared data in a multi-user state, reduces data copying during transmission, significantly improves information transmission efficiency and real-time communication, and reduces It solves the problem of multiple loads generated by a single module, removes the high coupling behavior between modules, and realizes the optimization of the overall module communication performance in the automatic driving system scenario.

[0022] In order to facilitate the understanding of the technical solution of the present invention, firstly, the term shared memory involved in the following shall be explained.

[0023] Shared memory allows two or more processes to share the same memory. W...

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 relates to a multi-process communication method based on a shared memory backup mechanism. The method comprises the following steps: receiving communication character string data and a data cache length; performing hash value calculation processing according to the communication character string data, and opening up N shared memory blocks with the same storage space according to a hash value and a data cache length sequence; enabling the write process to sequentially query the state information of each shared memory block according to the index address; when the shared memory blocks are in an idle state or a write-in state, enabling the write process to point a write data pointer to the shared memory blocks until all the shared memory blocks are fully written, and enabling the write process to point the write data pointer to the first shared memory block; meanwhile, enabling the reading process to sequentially query the state information of each shared memory block according to the index address; when the shared memory block is in an idle state or a read state, enabling the read process to point a read data pointer to the shared memory block, and reading write-in data in the shared memory block and / or a pointer address of the read data pointer.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a multi-process communication method based on a shared memory backup mechanism. Background technique [0002] An automatic driving system is usually composed of multiple modules, including but not limited to a positioning module, a perception module, a decision planning module, a map engine module, and a middleware module. In addition to working independently, each module also needs the assistance of other modules. Regardless of whether it is from the perspective of the safety of autonomous driving, the performance requirements of autonomous driving, or the perspective of fluency, the cooperation and cooperation between the various modules of autonomous driving have high requirements for the real-time performance of the automatic driving system. [0003] In the automatic driving system, when different nodes communicate and require real-time communication, shared memory is ...

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/54G06F11/14
CPCG06F9/544G06F11/1448
Inventor 夏洋张放张德兆王肖李晓飞霍舒豪
Owner CHONGQING LANDSHIP INFORMATION TECH 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