Check patentability & draft patents in minutes with Patsnap Eureka AI!

A method and system for inter-process communication

An inter-process communication and process technology, applied in the field of inter-process communication methods and systems, can solve problems such as delay, limitation of the amount of data carried by a Binder communication mechanism, and limitation of the amount of data to be carried.

Active Publication Date: 2021-06-22
HUAWEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and system for inter-process communication, which solves the delay problem caused by memory copy and allocation release, and the problem of the limitation of the amount of data carried by the Binder communication mechanism
Solved the delay problem caused by memory copy and allocation release, as well as the limitation of the amount of data carried by the Binder communication mechanism in Android

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
  • A method and system for inter-process communication
  • A method and system for inter-process communication
  • A method and system for inter-process communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The inter-process communication method provided by the embodiment of the present invention does not need to re-allocate the memory address in the second process to store the data of the first process, so that the memory does not need to be released after the inter-process communication ends. So as to solve the delay problem caused by memory copy and allocation release.

[0045] The embodiment of the present invention also provides a terminal, the terminal may include at least a memory, a transceiver and a processor, the memory can be used to store software programs, the processor executes various functions of the terminal by running the software programs stored in the memory, and the transceiver Can be used to receive launch notification messages.

[0046] Below to figure 1 An example is used as an example to further introduce the structure of the terminal. figure 1 What is shown is a schematic structural diagram of a mobile phone related to the embodiment of the pres...

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

Embodiments of the present invention relate to a method and system for inter-process communication, which are used to transmit communication data from a first process to a second process. The method includes: initializing and configuring the first process and the second process, including opening up a first memory space in a shared memory space; selecting a communication mode according to the length of communication data and the size of a threshold, wherein the threshold is the size of the first memory space; Data exchange between processes is carried out through the selected communication method. When the communication data length is less than the threshold, select the shared memory mode for communication, and when the communication data length reaches or exceeds the threshold value, select the data file mode for communication. The embodiment of the present invention solves the problem of delay caused by memory copy and allocation release, and the problem of limitation of the amount of data carried by the Binder communication mechanism.

Description

technical field [0001] The invention relates to the field of computers, in particular to an inter-process communication method and system. Background technique [0002] Inter-Process Communication (IPC) is one of the communication transfer technologies, which is mainly used for message transfer between different processes in a computer system. At present, there are mainly mechanisms such as pipeline communication, Socket, and shared memory. [0003] In existing terminal operating systems, such as Android (Android TM ) The message communication foundation in the system has a communication mechanism called Binder, which is an IPC communication mechanism. In principle, it is also a communication mechanism based on the C / S architecture, but the Binder communication uses internal proxy communication, so that when the Binder client communicates, it seems to be operating locally. At the same time, Binder does not need to know the port of the peer service when communicating, but ...

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 Patents(China)
IPC IPC(8): G06F9/54
CPCG06F9/544G06F9/546G06F12/0284G06F12/10G06F2212/657
Inventor 杨启彬刘森玉别晓辉
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More