• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Process Model (Stage Model)
2
3
4The process model is shown below.
5
6
7- All UIAbility, ServiceExtensionAbility, and DataShareExtensionAbility components of an application (with the same bundle name) run in an independent process, which is **Main process** in green in the figure.
8- All ExtensionAbility components of the same type (except ServiceExtensionAbility and DataShareExtensionAbility) of an application (with the same bundle name) run in an independent process, such as **FormExtensionAbility process**, **InputMethodExtensionAbility process**, and other **ExtensionAbility process** in blue in the figure.
9- WebView has an independent render process, which is **Render process** in yellow in the figure.
10
11**Figure 1** Process model
12
13![process-model](figures/process-model.png)
14
15> **NOTE**
16>
17> - You can create ServiceExtensionAbility and DataShareExtensionAbility only for system applications.
18> - To view information about all running processes, run the **hdc shell** command to enter the shell CLI of the device, and run the **ps -ef** command.
19
20A system application can apply for multi-process permissions (as shown in the following figure) and configure a custom process for an HAP. UIAbility, DataShareExtensionAbility, and ServiceExtensionAbility in the HAP run in the custom process. Different HAPs run in different processes by configuring different process names.
21
22**Figure 2** Multi-process
23
24![multi-process](figures/multi-process.png)
25
26
27The system provides the following inter-process communication (IPC) mechanism:
28
29
30[Common Events](../basic-services/common-event/common-event-overview.md): This mechanism is used in one-to-many communication scenarios. Multiple subscribers may receive events at the same time.
31
32 <!--no_check-->