Cross-Process Communication via Shared Container Service Module

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional cross-process communication methods waste memory capacity by requiring each destination process to load a separate service module, leading to inefficient communication setups.

Innovation Solution

A method and apparatus for cross-process communication that involves setting up a communication channel between a first process and a preset container process loaded with a service module, simplifying the setup procedure and improving efficiency by allowing multiple service modules to be loaded onto the container process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If each destination process loads a separate service module for cross-process communication, then communication can be established, but memory capacity is wasted

Engineering Contradiction:
Improvecommunication establishmentVSAvoidmemory capacity
Core Design Contradiction:
ReliabilityVSLoss of substance

Solution Approach 1:

Multiple destination processes share a common service module loaded in the QQ main process. Instead of each destination process loading its own service module separately, the service module is merged and shared across all destination processes, eliminating redundant memory usage while maintaining communication capability.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The service module is designed with multi-functionality to serve multiple destination processes simultaneously. The same service module can handle communication requests from different destination processes (e.g., Flash process, IE process) through a unified interface, making it universal rather than process-specific.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Reliability

If a common memory is set up between main process and destination process for cross-process communication, then communication channel is established, but setup procedure becomes complex

Engineering Contradiction:
Improvecommunication channelVSAvoidsetup procedure
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The service module acts as an intermediary component that simplifies the communication setup. Instead of directly establishing complex common memory connections between main process and each destination process, the service module mediates these connections through a standardized interface, reducing setup complexity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The communication setup is segmented into modular components: the QQ main process, the shared service module, and individual destination processes. This segmentation allows each component to have well-defined responsibilities and interfaces, making the overall setup procedure more manageable and less complex.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentEP2637366B1Method and device for interprocess communication and computer storage medium
Publication Date: 2021.01.06 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • EP2637366B1 patent drawingFigure 1
  • EP2637366B1 patent drawingFigure 2~3
  • EP2637366B1 patent drawingFigure 4~5

AI summary

The present disclosure provides a method and apparatus for cross-process communication, which is related to the field of communication. The method includes: a preset container process receiving a request for cross-process communication sent by a first process; the preset container process setting up a communication channel with the first process according to the request for cross-process communication; the preset container process loading service modules corresponding to the request for cross-process communication, therefore the preset container process that is loaded with the service modules conducting a cross-process communication with the first process through the communication channel. The apparatus includes a reception module, a channel setup module and a loading module. The present disclosure simplifies the process for setting up the communication channel in the cross-process communication, saves codes and therefore improves communication efficiency.