Inter-process communication method and device

A technology of inter-process communication and process, applied in the field of inter-process communication, to achieve the effect of reducing communication overhead, improving performance, and reducing performance overhead

Pending Publication Date: 2022-02-18
HUAWEI TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The sending process prepares the data to be sent in the user state according to the requirements, and then the sending process and the receiving process use the memory block (buffer) to send and receive the data resp

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
  • Inter-process communication method and device
  • Inter-process communication method and device
  • Inter-process communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] Embodiments of the present application are described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0052] The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" ...

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 an inter-process communication method. The method is applied to a computer system. The method comprises the following steps: writing data to be transmitted between a sending process and a receiving process into a register block and a stack memory of a first execution entity of the sending process according to a calling agreement; writing the address of the stack memory and a first value representing the data volume of the data in the stack memory into a register group; and copying the data to be transmitted from the stack memory of the first execution entity to the stack memory of the second execution entity through the second execution entity receiving the process according to the address of the stack memory and the corresponding first value. Data are transmitted through the register block and the stack memory, the communication performance of the IPC is improved, in addition, the invention further provides an inter-process communication scheme of the multi-stage IPC sequence, the intermediate process of the multi-stage IPC sequence only needs to forward the address and the data length of the memory block, cross-process copying can be achieved, and the communication performance of the multi-stage IPC is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for inter-process communication. Background technique [0002] With the development of computer technology, the communication requirements between multiple processes and between multiple processes and the same process increase. Currently, a send (send)-receive (recv) semantic model based on a communication channel is usually used to realize the sending and receiving of inter-process messages. [0003] The kernel provides an interprocess communication (IPC) service through a communication channel, and the communication channel is created by the receiving process and authorized to the sending process. The sending process prepares the data to be sent in the user state according to the requirements, and then the sending process and the receiving process use the memory block (buffer) to send and receive the data respectively. During the sending 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/54G06F2209/543G06F3/0604G06F3/064G06F3/0673G06F9/544
Inventor 王楠齐义飞余青松付明
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products