Suspends the calling process for the specified number of timer ticks.
#include <sys/types.h> #include <sys/errno.h>
void delay (ticks) int ticks;
ticks | Specifies the number of timer ticks that must occur before the process is reactivated. Many timer ticks can occur per second. |
The delay kernel service suspends the calling process for the number of timer ticks specified by the ticks parameter.
The HZ value in the /usr/include/sys/m_param.h file can be used to determine the number of ticks per second.
The delay kernel service can be called from the process environment only.
The delay service has no return values.
The delay kernel service is part of Base Operating System (BOS) Runtime.
Timer and Time-of-Day Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.