HP 3000 Manuals

Delaying a Process [ Process Management Programmer's Guide ] MPE/iX 5.0 Documentation


Process Management Programmer's Guide

Delaying a Process 

Your program can call the PAUSE intrinsic to delay its own execution.
The PAUSE intrinsic places the process in a suspended state (see Figure
1-2) and keeps it there for the number of seconds you specify in the
interval parameter.  At the end of the specified interval, the process
re-enters an active state.  The maximum interval allowed is approximately
2,147,484 seconds (almost 25 days).

The following is an example of a PAUSE intrinsic call:

     PAUSE (INTERVAL);

INTERVAL specifies the length of time, in seconds, that you want the
process to remain suspended.  MPE XL resumes execution with the statement
following the PAUSE intrinsic call.


MPE/iX 5.0 Documentation