If your program has PH capability, it can call the ACTIVATE intrinsic to activate a process that has been previously suspended (or just created) by the actions of these intrinsics:
The ACTIVATE intrinsic moves the specified child or parent process from a suspended state to an active state. . In addition, the ACTIVATE intrinsic optionally enables your program to suspend itself as soon as it activates the specified process.
Your program can only activate the parent process or a child process. Also,
your program must have permission to activate the specified process (refer to
the discussion of suspending a process). For example, only the parent process
can activate a newly created child process.
This is an example of an ACTIVATE intrinsic call:
.
.
.
SUSP := 2;
CREATE (BNAME,,PIN,,FLAGS);
ACTIVATE (PIN,SUSP);
.
.
.
|
The parameters specified in the example above are described below.
- PIN
Passes the PIN of the child process created by CREATE.
- SUSP
Passes activation information. A non-zero value specifies that the
calling process is to be suspended when the process specified by PIN is
activated. The value 2 specifies that only a child process is permitted to
reactivate the suspended process.