Ch 4. Getting Process Information [ Getting System Information Programmer's Guide ] MPE/iX 5.0 Documentation
Getting System Information Programmer's Guide
Chapter 4 Getting Process Information
When you are creating programs that run on MPE/iX, you can make the most
efficient use of system resources by taking advantage of the system's
process management capabilities. A number of intrinsics are used to
obtain process information and thus to assist you in controlling your
process structure.
These intrinsics are described in Process Management Programmer's Guide
(32650-90023), in the context of the process handling tasks that they
support. They are also listed alphabetically in the MPE/iX Intrinsics
Reference Manual (32650-90028). Unless your program has process handling
(PH) capability, you will find that your use of these intrinsics is very
limited.
Table 4-1 lists all of the process management information intrinsics.
Unless otherwise noted, you must have PH capability to use them.
Table 4-1. Process Management Information
---------------------------------------------------------------------------------------------
| | |
| Intrinsic | Functions |
| | |
---------------------------------------------------------------------------------------------
| | |
| FATHER | Determines the PIN of the parent of the calling process. |
| | |
| GETPROCID | Determines the PIN of a child of the calling process. |
| | |
| GETORIGIN | Determines whether the parent or a child process activated the |
| | calling process. |
| | |
| GETINFO | Returns user-supplied information that was passed to the |
| | calling process when it was created. |
| | |
| GETPROCINFO | Returns process management information about the parent or a |
| | child of the calling process. |
| | |
| PROCINFO | Returns the same information as GETPROCINFO, plus the PIN of |
| | the calling process, and error information. A program without |
| | PH capability can obtain limited information using this |
| | intrinsic. |
| | |
| PROCTIME | Determines the total amount of CPU time used by the calling |
| | process. PH capability is not required. Refer to chapter 5 of |
| | this manual for a discussion of this intrinsic. |
| | |
---------------------------------------------------------------------------------------------
The following notes explain some of the terminology used in Table 4-1.
* PIN. The unique process identification number, assigned when the
process is created.
* Calling Process. The process calling the intrinsic.
MPE/iX 5.0 Documentation