COBOL Manual for TNS/E Programs (H06.03+)
Process Initiation, Communication, and
Management
HP COBOL Manual for TNS/E Programs—520347-003
31-20
Managing a Process
Managing a Process
Besides creating processes and communicating with processes, a process might need
to obtain information about itself or about some other process in the same system or
another system on the same Expand network.
Topics:
•
Determining the Process Handle
•
Determining the Node (System Number)
•
Identifying the Message Source
•
Determining the Status
•
Identifying the Creator
•
Monitoring Descendants’ Completion
•
Changing the Creator ID
•
Suspending a Process
Determining the Process Handle
If a process has a record of its process handle—process name, processor number, and
number of the process within that processor (also called process identification number
or PIN)—it can:
•
Generate more useful diagnostic messages by including the process handle
information and the time and date
•
Use its knowledge of its location (processor number) in creating other processes
with which it must communicate
•
Obtain information from the operating system routines that require the processor
number and PIN as parameters
A process can obtain its process ID by passing its process number to the
PROCESSHANDLE_DECOMPOSE_ procedure, which returns the processor and PIN
values as separate integer values. If you do not know the process number, you can get
it by calling the PROCESSHANDLE_GETMINE_ procedure.










