Inter-process communication method and device and computer equipment

A technology of computer equipment and inter-process communication, which is applied in the computer field and can solve problems such as high overhead and long IPC communication time

Pending Publication Date: 2020-12-04
HUAWEI TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this solution still requires kernel intervention to complete context switching, and the overhead of context switching is still large, resulting in a long IPC communication time.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The performance overhead of the IPC mainly comes from two aspects. One is context switching, which can be referred to the description in the background technology section. The context appearing in this application generally refers to the thread (or process) context, specifically, refers to various states of a thread (or process) maintained in an operating system, usually including registers used by threads, page tables, Thread private storage, thread metadata, and more. The second is the overhead of data transmission. To complete cross-process data transfer, copy or shared memory solutions are usually used. Using copy will bring a lot of performance overhead, especially for some applications with relatively large data flow; while the shared memory solution can theoretically achieve zero copy, but there is a check time to use time (Time of Check to Time of Use, TOCTTOU) ) security issues.

[0068] The solution provided by this application is a software-hardware synerg...

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 provides an inter-process communication method, a related device for realizing the method, computer equipment and the like. The method can be applied to intelligent terminals, automaticdriving equipment and the like. The method mainly comprises the steps that a communication engine running in a hardware layer or a high-level software layer provides a context switching instruction, when a caller running in a user mode calls a callee, context switching is directly achieved by calling the context switching instruction, the caller does not need to be trapped in a kernel, and the user experience is improved. Therefore, the intervention of the kernel on the context switching is avoided to a certain extent, and the execution time of the inter-process communication IPC is shortened.

Description

technical field [0001] The present application relates to computer technology, in particular to a method, device and computer equipment for inter-process communication. Background technique [0002] Microkernel-based operating system architecture (referred to as microkernel architecture) is widely used in cloud platforms, embedded devices, mobile devices, driverless and other scenarios. The microkernel architecture reduces its real core functions to very few, and puts many components in the traditional operating system kernel (such as the macrokernel architecture Linux), such as file systems and network protocol stacks, to run in user-mode processes. . [0003] Compared with the traditional operating system kernel, the microkernel architecture can ensure that any module that undertakes complex functions can be placed in a user-mode process, and can make different processes run in isolation. This approach can greatly enhance the isolation and reliability of the operating sy...

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/54
CPCG06F9/544G06F9/461
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