Guardian Procedure Calls Reference Manual
Running the DELAY Program
You use the DELAY program to delay the execution of the calling process for a specified amount
of time. DELAY calls the DELAY procedure for the length of time specified. After the delay finishes,
the process resumes execution.
The syntax to run DELAY is:
DELAY / run-option [ , run-option ].../time { TIC | SEC | MIN
}
DELAY
is an implicit RUN command that starts a DELAY process.
run-option
is any valid option for the TACL RUN command. These options are described in the TACL
Reference Manual.
time
is an integer specifying the delay time in the specified units.
{ TIC | SEC | MIN }
specifies the units of measurement for time:
hundredths of a secondTIC
secondsSEC
minutesMIN
Example Using DIVER and DELAY
This example uses the DIVER and DELAY programs to cause both processors (0 and 1) of a
two-processor system to fail and reload repeatedly, approximately once every seven minutes. You
can increase this cycle time if your application requires more time to recover.
NOTE: If your test system has more than two processors, then examine the system configuration
and select processors to fail that will cause the least disruption to the system.
1. Start the TACL command interpreter running as a process pair in processors 0 and 1. In this
example, processor 0 must be the primary processor, and processor 1 must be the backup
processor for the TACL process.
2. Log on as a member of the super group.
3. Create two EDIT files (file code 101) named DIVE0 and DIVE1 that contain these TACL
commands.
The DIVE0 file contains:
DIVER / CPU 1 /
DELAY 120 SEC
RELOAD 1
DELAY 5 MIN
TACL / CPU 1, NAME $DIVE1, IN DIVE1 /
The DIVE1 file contains:
DIVER / CPU 0 /
DELAY 120 SEC
RELOAD 0
DELAY 5 MIN
TACL / CPU 0, NAME $DIVE0, IN DIVE0 /
Running the DELAY Program 1577