Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
sleep(3C)							     sleep(3C)

NAME
       sleep() - suspend execution for interval

SYNOPSIS
DESCRIPTION
       suspends	 the  current process from execution for the number of seconds
       specified by the	argument.

       Actual suspension time can be less than that requested for two reasons:

	      o	 Scheduled wakeups occur at fixed 1-second intervals  (on  the
		 second, according to an internal clock), and

	      o	 Any caught signal terminates the sleep	following execution of
		 that signal's catching	routine.

       Suspension time can be an arbitrary amount longer than requested	due to
       the  scheduling of other	activity in the	system.	 The value returned by
       is the ``unslept'' amount (the requested	time minus the	time  actually
       slept)  in  case	the caller had an alarm	set to go off earlier than the
       end of the requested time, or premature arousal due to  another	caught
       signal.

       seconds must be less than 2^31.

APPLICATION USAGE
       If  a  SIGALRM is generated for a multi-threaded	process, it may	not be
       delivered to a thread currently in See sigwait(2) man page for details.
       In a multi-threaded process delivery of a SIGALRM to a thread in	simply
       causes to return	without	invoking the SIGALRM handler.

SEE ALSO
       sigwait(2), signal(5), thread_safety(5).

STANDARDS CONFORMANCE
								     sleep(3C)

NAME | SYNOPSIS | DESCRIPTION | APPLICATION USAGE | SEE ALSO | STANDARDS CONFORMANCE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sleep&sektion=3c&manpath=HP-UX+11.22>

home | help