SCO OpenServer
suspend(D3oddi)
suspend --
delay running processes
Synopsis
void suspend(unsigned int microsecs);
Description
The
suspend( )
function delays the running process by
microsecs microseconds.
It causes the processor to busy-wait
until the required time interval has elapsed.
Arguments
microsecs-
Number of microseconds to delay execution.
Return values
None.
Usage
suspend( )
implements a timed ``buzz loop'',
which can seriously degrade system performance.
suspend( )
should be used only when the
delay(D3oddi)
function cannot be called.
The processor spl level is unchanged
so interrupts are serviced as normal.
If an interrupt fielded by the spinning processor
takes longer than 20 milliseconds to complete,
the delay time will be adversely affected.
Context and synchronization
All
contexts.
Hardware applicability
All
Version applicability
oddi:
1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
SVR5 DDI compatibility
drv_usecwait(D3)
provides similar functionality
for DDI drivers.
References
delay(D3oddi),
drv_usecwait(D3)
``Delays and busy-waits'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005