Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for realizing memory sharing, electronic equipment and shared memory data management library

A shared data and memory sharing technology, applied in the computer field, can solve problems such as blocking and waiting of other processes, low communication efficiency, etc., and achieve the effect of improving communication efficiency and reducing mutual waiting

Pending Publication Date: 2020-08-07
JUXING TECH SHENZHEN CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when multiple processes use shared memory to communicate, it will involve the synchronization and mutual exclusion of reading and writing data, and the current common practice is to directly lock the entire shared memory data management library or data pool, then in a certain At this point in time, only one process can modify the shared data, and other processes can only block and wait, resulting in low overall communication 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
  • Method for realizing memory sharing, electronic equipment and shared memory data management library
  • Method for realizing memory sharing, electronic equipment and shared memory data management library
  • Method for realizing memory sharing, electronic equipment and shared memory data management library

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0035] The traditional in-memory database is a specific organizational form, which usually supports adding, deleting, checking and modifying. In some industrial applications, such as the design of embedded systems, the storage and access of sensor data, etc., the volume of memory data blocks shared by multiple processes is usually much smaller. For example, robot sensor data uses hundreds to thousands of KB of shared memory is sufficient. Embodiments ...

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 method for realizing memory sharing, electronic equipment and a shared memory data management library. The method for achieving memory sharing comprises the steps that a shared memory data pool is allocated, and the data pool can be accessed by multiple processes; the data pool is divided into a plurality of minimum shared data units; the memory management module locks the operation of the minimum shared data unit when receiving a read / write request of a process, and multiple processes concurrently apply for holding a read / write lock for operation; and the memory management module releases the read-write lock after executing the read / write operation of the process. The shared memory data pool is divided into small blocks (small particles), and the shared data of each small particle is locked and synchronized, so that a multi-concurrency effect is realized, the mutual waiting of multiple processes is reduced, and the overall communication efficiency is improved.

Description

technical field [0001] The disclosure relates to the field of computer technology, and in particular to a method for realizing memory sharing, electronic equipment and a shared memory data management library. Background technique [0002] In a robot system based on Linux or Unix, shared memory is a common inter-process communication method. A shared memory segment is created by the kernel and mapped to the data segment of the user-mode process. The biggest advantage of using shared memory communication is that it is very efficient, because processes can directly read and write memory without copying any data. However, when multiple processes use shared memory to communicate, it will involve the synchronization and mutual exclusion of reading and writing data, and the current common practice is to directly lock the entire shared memory data management library or data pool, then in a certain At this point in time, only one process can modify the shared data, and other process...

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/542
Inventor 肖玉科张杨敏
Owner JUXING TECH SHENZHEN CO LTD