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

  man pages->Tru64 Unix man pages -> sleep (3)              
Title
Content
Arch
Section
 

sleep(3)

Contents


NAME    [Toc]    [Back]

       sleep - Suspend execution for an interval of time

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       unsigned int sleep(
               unsigned int seconds );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

       Threads Library (libpthreads.a)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       sleep(): XPG4, XPG4-UNIX

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies the number of seconds to sleep.

DESCRIPTION    [Toc]    [Back]

       The  sleep()  function suspends execution of a process for
       the interval specified by the seconds parameter.  The suspension
  time  may  be  longer  than  requested due to the
       scheduling of other activity by the system.

       In a multi-threaded environment, the sleep()  function  is
       redefined so that only the calling thread is suspended.

RETURN VALUES    [Toc]    [Back]

       If the sleep() function returns because the requested time
       has elapsed, it returns 0 (zero). If the sleep()  function
       returns  because  it caught a signal, the function returns
       the number of seconds remaining in the suspension.

SEE ALSO    [Toc]    [Back]

      
      
       Commands: wall(1), shutdown(8) sleep(1)

       Functions: sigaction(2), alarm(3), pause(3)

       Standards: standards(5)



                                                         sleep(3)
[ Back ]
 Similar pages
Name OS Title
usleep HP-UX suspend execution for an interval
sleep IRIX suspend execution for interval
usleep IRIX suspend execution for an interval
sleep IRIX suspend execution for an interval
sleep HP-UX suspend execution for an interval
usleep NetBSD suspend execution for interval of microseconds
usleep OpenBSD suspend execution for interval of microseconds
sleep OpenBSD suspend process execution for interval of seconds
sleep NetBSD suspend process execution for interval of seconds
usleep FreeBSD suspend process execution for an interval measured in microseconds
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service