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

Shared multi-channel process communication memory structure and method

A technology of process communication and shared memory, applied in multi-programming devices, inter-program communication, program control design, etc., can solve the problems of complex asynchronous process processing, difficulty in improving communication efficiency, and increasing implementation complexity.

Pending Publication Date: 2019-12-03
SOUTHEAST UNIV
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Synchronous communication requires the process to enter the waiting state after sending the request message, and the waiting process will not release communication resources; if asynchronous communication is used, the communication process will release and reuse resources, but the asynchronous process processing is relatively complicated
Targeted use of synchronous or asynchronous communication for different tasks helps to improve communication efficiency, but based on the existing shared memory communication method, the improvement of communication efficiency is limited to a few communication processes, and multi-process cross-communication will increase the implementation Complexity, it is difficult to achieve global communication efficiency improvement

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 multi-channel process communication memory structure and method
  • Shared multi-channel process communication memory structure and method
  • Shared multi-channel process communication memory structure and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Shared memory belongs to the operating system kernel, and the implementation methods are different on different operating systems. On Microsoft's windows platform, it can be implemented using technologies such as memory mapping or shared data segments of dynamic link libraries. For memory mapping technology, the windows system provides a function (CreateFileMapping) that allows applications to map files to a process. If the file handle is specified in the function call as the invalid handle INVALID_HANDLE_VALUE preset by the system, no substantial disk file is needed. The page file of the virtual memory is automatically used to create a shareable memory block. Other processes obtain the starting address of the shared memory block by calling the MapViewOfFile function. The memory block obtained by memory mapping is a continuous space, and it needs to be mapped to a specific structured data space in general use. In the dynamic link library technology, the system provides...

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 shared multi-channel process communication memory structure and method. Data structures of a communication channel area, a channel state area and a task queue area are established in a shared memory so that a plurality of IPC channels which do not depend on specific process creation, can be reused and can carry out concurrent communication. Through channel state classification and monitoring, channel idleness, occupation and fault identification is realized, and multi-process communication stability is ensured. The communication system can adapt to synchronous and asynchronous communication by transmitting handshake information through the shared memory and setting a reasonable message structure, and has high universality and flexibility. The shared multi-channelprocess communication memory structure and method can be used for a system with any cross inter-process communication and synchronous and asynchronous mixed mode process communication, and the complexity of process communication design can be effectively reduced.

Description

Technical field [0001] The present invention relates to the field of process communication technology, in particular to multi-process communication technology, memory structure and method based on shared memory technology. Background technique [0002] In the field of software development, InterProcess Communication (IPC, InterProcess Communication) is a kind of basic technology, and process communication based on shared memory is the fastest IPC method. The shared memory is usually divided into several fragments to form several communication channels to improve the concurrency of communication. However, the shared memory in the prior art basically adopts in-process creation, which essentially binds the shared memory to the process, and the concurrency performance improvement is limited to the bound process range. In the multi-process cross-communication scenario, there is a complex network structure between processes. Based on the above method, a shared memory instance must be ...

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/544Y02D10/00
Inventor 徐啸虎
Owner SOUTHEAST UNIV
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