Inter-process communication method and device
A technology of inter-process communication and process, applied in the direction of inter-program communication, multi-program device, etc., can solve the problems of increasing the complexity of inter-process communication
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0112] refer to figure 1 , figure 1 An inter-process communication method provided by an embodiment of the present invention is shown, and the method includes:
[0113] S101. The main process creates a sub-process host object, and assigns a corresponding sub-process identifier to the sub-process host object.
[0114] In the embodiment of the present invention, the main process creates and manages sub-process host objects, each sub-process host object corresponds to a sub-process, and has the same sub-process identifier as the corresponding sub-process.
[0115] S102. The main process uses the created sub-process host object to start the sub-process, and sends a first command to the sub-process, where the first command line carries the sub-process identifier and the main process communication interface handle.
[0116] The subprocess host object provides a method for creating and starting a subprocess, and provides a data communication interface for sending the first command ...
Embodiment 2
[0137] refer to figure 2 , figure 2 An inter-process communication method provided by an embodiment of the present invention is shown, and the method includes:
[0138] S201, the main process creates a new browser sub-window.
[0139] S202. The main process creates a sub-process rendering host object, and assigns a corresponding rendering object identifier to the sub-process rendering host object.
[0140] S203. The main process invokes the subprocess host object rendering method, creates a subprocess host object in the method, and assigns a corresponding subprocess identifier to the subprocess host object.
[0141] S204, the main process uses the created sub-process host object to start the sub-process, and sends a first command to the sub-process, where the first command line carries the sub-process identifier and the main process communication interface handle.
[0142] S205, the subprocess starts and receives a first command from the main process.
[0143] S206, the ...
Embodiment 3
[0168] This embodiment takes a specific data object model as an example to describe an inter-process communication method provided by the present invention, and the involved data object model is defined as follows:
[0169] CApplication application
[0170] -CMainProcess main process
[0171] -CChildProcess child process
[0172] Among them, the data model provided by the main process CMainProcess is shown in Table 1; the data model provided by the child process CChildProcess is shown in Table 2:
[0173]
[0174] Table 1
[0175]
[0176] Table 2
[0177] refer to image 3 , image 3 An inter-process communication method provided by an embodiment of the present invention is shown, and the method includes:
[0178] S301, the main process creates a new browser sub-window.
[0179] S302. The main process creates a sub-process rendering host object CRenderViewHost, and assigns a corresponding rendering object identifier viewid to the sub-process rendering host object...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com