hpux man page for sleep

Query: sleep

OS: hpux

Section: 3c

Links: hpux man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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 is generated for a multithreaded process, it may not be delivered to a thread currently in See the sigwait(2) manpage for details.
SEE ALSO
sigwait(2), signal(5), thread_safety(5).
STANDARDS CONFORMANCE
sleep(3C)
Related Man Pages
nanosleep(3c) - opensolaris
nanosleep(2) - hpux
sleep(3) - ultrix
sleep(3) - osf1
sleep(3ucb) - opensolaris
Similar Topics in the Unix Linux Community
High kernel usage using sleep
loop of killing and calling process
specifying an execution time
sleep command off by a second
Kill a process after a certain amount of time