Unix and Linux Discussions Tagged with execution |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
3,648 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,039 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
4,260 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,078 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,425 |
Shell Programming and Scripting |
|
|
|
11 |
12,603 |
Ubuntu |
|
|
|
1 |
2,774 |
Shell Programming and Scripting |
|
|
|
1 |
2,616 |
Shell Programming and Scripting |
|
|
|
3 |
14,391 |
Programming |
|
|
|
0 |
1,957 |
Complex Event Processing RSS News |
|
|
|
3 |
11,711 |
Programming |
|
|
|
4 |
5,674 |
Shell Programming and Scripting |
|
|
|
4 |
6,518 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
26,041 |
AIX |
|
|
|
7 |
9,001 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,717 |
Complex Event Processing RSS News |
|
|
|
0 |
3,700 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
11,164 |
Cybersecurity |
|
|
|
2 |
2,821 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,998 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
7,253 |
Programming |
|
|
|
2 |
4,491 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
7,096 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
13,057 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
15,883 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
14,009 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
11,221 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,863 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,638 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,863 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,692 |
UNIX for Dummies Questions & Answers |
sleep(3C) sleep(3C)
NAME
sleep - suspend execution for an interval of time
SYNOPSIS
#include <unistd.h>
unsigned int sleep(unsigned int seconds);
The caller is suspended from execution for the number of seconds specified by the argument. The actual suspension time may be less than
that requested because any caught signal will terminate the sleep() following execution of that signal's catching routine. The suspension
time may be longer than requested by an arbitrary amount because of the scheduling of other activity in the system. The value returned by
sleep() will be the ``unslept'' amount (the requested time minus the time actually slept) if the caller incurred premature arousal because
of a caught signal.
The use of the sleep() function has no effect on the action or blockage of any signal. In a multithreaded process, only the invoking thread
is suspended from execution.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
nanosleep(3RT), attributes(5), standards(5)
16 Mar 2005 sleep(3C)