1# ProcessInfo 2 3The **ProcessInfo** module defines process information. You can use [getProcessInfo](js-apis-inner-app-context.md#contextgetprocessinfo7) to obtain information about the processes running on the current ability. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8 9**System capability**: SystemCapability.Ability.AbilityRuntime.Core 10 11| Name| Type| Readable| Writable| Description| 12| -------- | -------- | -------- | -------- | -------- | 13| pid | number | Yes| No| Process ID.| 14| processName | string | Yes| No| Process name.| 15 16**Example** 17```ts 18import featureAbility from '@ohos.ability.featureAbility'; 19 20let context = featureAbility.getContext(); 21context.getProcessInfo((err, data) => { 22 if (err.code !== 0) { 23 console.info('getProcessInfo err: ' + JSON.stringify(err) + 'data: ' + JSON.stringify(data)); 24 let pid = data.pid; 25 let processName = data.processName; 26 } 27}); 28``` 29 30