1# ProcessRunningInfo 2<!--Kit: Ability Kit--> 3<!--Subsystem: Ability--> 4<!--Owner: @SKY2001--> 5<!--Designer: @yzkp--> 6<!--Tester: @lixueqing513--> 7<!--Adviser: @huipeizi--> 8<!--deprecated_code_no_check--> 9 10The module defines the running information of a process. 11 12> **NOTE** 13> - The APIs provided by this module are deprecated since API version 9. You are advised to use [ProcessInformation<sup>9+</sup>](js-apis-inner-application-processInformation.md) instead. 14> - The initial APIs of this module are supported since API version 8. 15 16## Modules to Import 17 18```ts 19import appManager from '@ohos.application.appManager'; 20``` 21 22## Attributes 23 24**System capability**: SystemCapability.Ability.AbilityRuntime.Mission 25 26| Name| Type| Read-Only| Optional| Description| 27| -------- | -------- | -------- | -------- | -------- | 28| pid | number | No| No| Process ID.| 29| uid | number | No| No| User ID.| 30| processName | string | No| No| Process name.| 31| bundleNames | Array<string> | No| No| Names of all running bundles in the process.| 32 33## Usage 34 35The process running information is obtained by using [getProcessRunningInfos](js-apis-application-appManager.md#appmanagergetprocessrunninginfosdeprecated) in appManager. 36 37**Example** 38```ts 39import appManager from '@ohos.application.appManager'; 40import { BusinessError } from '@ohos.base'; 41 42appManager.getProcessRunningInfos().then((data) => { 43 console.info(`success: ${JSON.stringify(data)}`); 44}).catch((error: BusinessError) => { 45 console.error(`failed: ${JSON.stringify(error)}`); 46}); 47``` 48