Suspends the calling process for the specified number of timer ticks.
#include <sys/types.h>
#include <sys/errno.h>
void delay
( ticks)
int ticks;
Item | Description |
---|---|
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.