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

Shared-memory-based method for conducting communication among multiple processes

A technology of shared memory and communication method, applied in the computer field, can solve problems such as affecting system performance and high overhead, and achieve the effect of improving interaction ability, throughput and performance.

Active Publication Date: 2014-01-15
INST OF INFORMATION ENG CAS
View PDF5 Cites 48 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem with several communication methods other than shared memory is that when two processes exchange information, the information must be passed through the kernel, resulting in higher overhead, which becomes a problem that affects system performance in systems that require extremely high efficiency. the bottleneck

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
  • Shared-memory-based method for conducting communication among multiple processes
  • Shared-memory-based method for conducting communication among multiple processes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0043] Shared memory is a high-efficiency inter-process communication method and the fastest IPC form. Two different processes A and B share memory, which means that the same piece of physical memory is mapped to the process address spaces of processes A and B respectively. The two processes can see each other's update of the data in the shared memory in real time, and the transfer of data between processes A and B no longer involves the kernel. Since multiple processes share the same memory area, some kind of synchronization mechanism is necessary, either mutexes or semaphores.

[0044]Whether it is a read-write lock or a mutex lock, if it is used in large quantities, it will inevitably affect the system performanc...

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 shared-memory-based method for conducting communication among multiple processes. According to the method, a shared memory is managed in a circular queue mode, the shared memory is used for reading and writing conducted by the multiple processes in the circular queue mode, reading or writing is conducted by making a block as a unit, and the size of each block is controlled by a user; the shared memory is shared by the multiple processes, and the multiple processes comprise read-only processes and write-only processes; the multiple processes can conduct reading operation on the shared memory simultaneously, only one process can conduct writing operation on the shared memory, reading does not conflict with writing, and reading and writing can be conducted simultaneously. By means of the method, the number of times of copying conducted through a kernel when the processes exchange information is reduced greatly, throughput of a background system is improved, the overhead of the system is reduced, and performance of the system is effectively enhanced.

Description

technical field [0001] The invention relates to the field of computers, in particular to an inter-process communication method based on shared memory. Background technique [0002] In the traditional Unix programming model, multiple processes run on the same operating system, and each process has its own address space. Information sharing between Unix processes can take many forms, usually including: pipelines, FIFOs, message queues, and Interdomain sockets and shared memory. The problem with several communication methods other than shared memory is that when two processes exchange information, the information must be passed through the kernel, resulting in higher overhead, which becomes a problem that affects system performance in systems with extremely high efficiency requirements. the bottleneck. [0003] The use of shared memory for communication between processes no longer involves the kernel. How to use shared memory to achieve efficient communication between 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/44
Inventor 刘庆云李世明刘洋秦鹏郑超孙永周舟杨威
Owner INST OF INFORMATION ENG CAS
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