*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> DELAY (9r)              



NAME    [Toc]    [Back]

       DELAY  -  General:  Delays the calling routine a specified
       number of microseconds

SYNOPSIS    [Toc]    [Back]

       void DELAY(
               int Specifies n );

ARGUMENTS    [Toc]    [Back]

       Specifies the number of microseconds for the calling  process
 to spin.

DESCRIPTION    [Toc]    [Back]

       The  DELAY  routine delays the calling routine a specified
       number of microseconds.   DELAY  spins,  waiting  for  the
       specified number of microseconds to pass before continuing

       For   example,   the   following   code   results   in   a
       10000-microsecond (10-millisecond) delay:


       The  range of delays is system dependent, due to its relation
 to the granularity of the system  clock.  The  system
       defines  the  number  of  clock ticks per second in the hz
       variable. Specifying any value smaller than 1  Hz  to  the
       DELAY  routine  results in an unpredictable delay. For any
       delay value, the actual delay may vary by  plus  or  minus
       one clock tick.

       Using the DELAY routine is discouraged because the processor
 will be consumed for the specified time  interval  and
       therefore  is  unavailable  to service other processes. In
       cases where kernel modules  need  timing  mechanisms,  you
       should  use  the sleep and timeout routines instead of the
       DELAY routine.  The most common usage of the DELAY routine
       is  in  the system boot path. Using DELAY in the boot path
       is often acceptable because there are no  other  processes
       in contention for the processor.

RETURN VALUES    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

       Routines: sleep(9r), timeout(9r)

[ Back ]
 Similar pages
Name OS Title
sleep Tru64 General: Puts a calling process to sleep
kernel_thread_w_arg Tru64 General: Starts a kernel thread with a calling argument passed in
pthread_cleanup_pop Tru64 (Macro) Removes the cleanup handler routine from the calling thread's cleanup handler stack and opti...
pthread_delay_np Tru64 Delays a thread's execution
pxfsleep IRIX Delays process execution
register_callback Tru64 General: Registers a configuration callback routine
unregister_callback Tru64 General: Deregisters a configuration callback routine
untimeout Tru64 General: Removes the scheduled routine from the callout queues
COMBAK IRIX EISPACK routine. This subroutine forms the eigenvectors of a COMPLEX GENERAL matrix by back transforming those
CBABK2 IRIX EISPACK routine. This subroutine forms the eigenvectors of a COMPLEX GENERAL matrix by back transforming those
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service