Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual—522629-013
12-59
PROCESS_DELAY_ Procedure (H-Series RVUs
Only)
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
timeout input
long long:value
specifies the time, in microsecond units, that the caller of PROCES_DELAY_ is to
be suspended.
Considerations
•
The process stops executing for at least MUTIME microseconds
•
time-period value <= 0D
A value of less than or equal to 0D results in no delay as such, but returns this
process to the Ready List.
•
Measuring time by the processor clock
The PROCESSOR_DELAY_ procedure measures time according to the internal
clock of the processor in which the calling process is executing. Processor time is
time as measured by a particular process. Typically, processor time differs slightly
from system time and varies slightly from processor to processor. System time is
determined by taking the average of all the processor times in the system.
When measuring short intervals, the difference between processor time and
system time is negligible. However, when measuring long intervals (such as
several hours or more), the difference can be noticeable. Refer to
“Considerations” for the SIGNALTIMEOUT procedure for a discussion about
measuring long time intervals.
Example
CALL PROCESS_DELAY_(60000000F); -- delay for 60 seconds
#include <cextdecs(PROCESS_DELAY_)>
void PROCESS_DELAY_ ( long long (Timeout );
PROC PROCESS_DELAY_( MUTIME ) CALLABLE, RESIDENT;
long long MUTIME; -- INPUT: TIMEOUT IN MICROSECONDS
EXTERNAL;