HP 3000 Manuals

Activating a Process (PH Capability Required) [ Process Management Programmer's Guide ] MPE/iX 5.0 Documentation


Process Management Programmer's Guide

Activating a Process (PH Capability Required) 

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:

 *  SUSPEND

 *  ACTIVATE

 *  CREATEPROCESS

 *  CREATE

The ACTIVATE intrinsic moves the specified child or parent process from a
suspended state to an active state (see Figure 1-2).  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.


MPE/iX 5.0 Documentation