Guardian Application Conversion Guide

Creating and Managing a High-PIN Process
Converting TAL Applications
3–24 096047 Tandem Computers Incorporated
Activating a Process
Your existing program might call the ACTIVATEPROCESS procedure to return a
process or process pair from the suspended state to the active state:
CALL ACTIVATEPROCESS (process^id);
Convert the ACTIVATEPROCESS call into a call to the PROCESS_ACTIVATE_
procedure. PROCESS_ACTIVATE_ requires a process handle rather than a process ID
as an input parameter to specify the process or process pair to activate.
An optional integer parameter specifies whether only the specified process is activated
or both members of a named process pair are activated. Values for this parameter are:
0 (or omitted) Activate only the process specified by the process handle.
1 If the process specified by the process handle is part of a named
process pair, activate both members of the pair.
In the following example, PROCESS_ACTIVATE_ first activates only the process
identified by the
process^handle
parameter and then activates both processes of a
process pair where one process of the pair is identified by
process^handle
:
error := PROCESS_ACTIVATE_(process^handle);
...
! Activate both processes of the process pair.
specifier := activate^pair; ! Set to 1.
error := PROCESS_ACTIVATE_(process^handle,
specifier); ! Value = 1.
Suspending a Process
Your existing program might call the SUSPENDPROCESS procedure to place a
process or process pair in the suspended state:
CALL SUSPENDPROCESS (process^id);
Convert the SUSPENDPROCESS call into a call to the PROCESS_SUSPEND_
procedure. PROCESS_SUSPEND_ requires a process handle rather than a process ID
as an input parameter to specify the process or process pair to suspend.
An optional integer parameter specifies whether only the specified process is
suspended or both members of a named process pair are suspended. Values for this
parameter are:
0 (or omitted) Suspend only the process specified by the process handle.
1 If the process specified by the process handle is part of a named
process pair, suspend both members of the pair.