delay Kernel Service

Purpose

Suspends the calling process for the specified number of timer ticks.

Syntax

#include <sys/types.h>
#include <sys/errno.h>

void delay
(
ticks)
int ticks;

Parameter

Item Description
ticks Specifies the number of timer ticks that must occur before the process is reactivated. Many timer ticks can occur per second.

Description

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.

Execution Environment

The delay kernel service can be called from the process environment only.

Return Values

The delay service has no return values.