Inter-process communication method and device

A technology of inter-process communication and communication channel, which is applied in the field of inter-process communication and can solve problems such as inflexible programming and cache disturbance at the receiving end.

Active Publication Date: 2015-05-27
HUAWEI TECH CO LTD
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art based on the Barrelfish operating system's zero-copy scheme within the kernel and between kernels, in order to map the message memory into its own address space, the receiving end needs to enter and exit the kernel space, which will cause corresponding time overhead; at the same time, the receiving end needs to enter and exit the kernel spa

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

Example Embodiment

[0114] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0115] The method of inter-process communication provided by the embodiment of the present invention can be applied to the zero-copy solution of inter-process communication. The existing zero-copy solution of single-core and multi-core operating systems is mainly used in the kernel and kernel of the Barrefish system. The zero-copy scheme between the two systems, the zero-copy scheme of the L4 system in the second-generation micro-kernel s...

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 embodiment of the invention provides an inter-process communication method and device, relates to the technical field of computers, and aims to realize reading of a message in the case that a receiving end does not need to enter or exit a kernel space, avoid the time expenditure for the receiving end to enter or exit the kernel space, save the response time of the message and meanwhile reduce the disturbance of cache of the receiving end. The method specifically comprises the following steps: establishing a communication channel between the transmitting end and the receiving end; entering the kernel space and writing a channel number and a first parameter of the communication channel into the kernel space; acquiring a shared page table of the receiving end according to the channel number of the communication channel; mapping the physical address of a memory page of the message to a continuous idle page table entry of the shared page table of the receiving end to obtain a new virtual address of the message; storing the new virtual address of the message and the first parameter in a message notification region of the receiving end so as to read the message by the receiving end according to the new virtual address. The method and the device are applied to inter-process communication.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for inter-process communication. Background technique [0002] A process is an instance of a program that is running on a computer, and there are corresponding communication requirements between different processes due to mutual cooperation. In operating system research, Interprocess Communication (IPC) is an important research topic, and improving the efficiency of IPC is particularly important to the performance of the entire operating system. Commonly used IPC methods include message transmission, shared memory, and zero copy. The traditional operating system is divided into macro-kernel and micro-kernel. In recent years, with the rapid development of semiconductor manufacturing technology, the main frequency of a single processor chip has gradually approached the limit. It is no longer possible to continue the calculation speed of the processor ...

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
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