[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

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

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.

Related Information

Timer and Time-of-Day Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]