delay process execution for a specified number of clock ticks
void delay(long ticks);
delay causes the caller to sleep for the amount of time specified
by ticks, which is in units of clock ticks.
The exact length of the delay is not guaranteed but it will not be less
than ticks -1 clock ticks.
The number of clock ticks to delay.
The length of a clock tick can vary across different implementations and
therefore drivers should not include any hard-coded assumptions about
the length of a tick.
can be used, as necessary, to convert between clock ticks and microseconds
(implementation independent units).
The delay function calls
[or, for multithreaded drivers,
to schedule a wakeup after the specified amount of time has elapsed.
delay then goes to sleep until timeout
wakes up the sleeping process.
Context and synchronization
User or blockable
Calling this function while a driver-defined sleep lock is held
can adversely affect performance
by forcing any other processes that are contending for the lock
to block for the duration of the delay.
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
SCO OpenServer ODDI compatibility
is the ODDI equivalent of this function.
``Delays and busy-waits'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005