Unix and Linux Discussions Tagged with execution |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
3,646 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,036 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
4,258 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,077 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,425 |
Shell Programming and Scripting |
|
|
|
11 |
12,601 |
Ubuntu |
|
|
|
1 |
2,774 |
Shell Programming and Scripting |
|
|
|
1 |
2,616 |
Shell Programming and Scripting |
|
|
|
3 |
14,386 |
Programming |
|
|
|
0 |
1,957 |
Complex Event Processing RSS News |
|
|
|
3 |
11,710 |
Programming |
|
|
|
4 |
5,674 |
Shell Programming and Scripting |
|
|
|
4 |
6,518 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
26,041 |
AIX |
|
|
|
7 |
9,000 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,717 |
Complex Event Processing RSS News |
|
|
|
0 |
3,700 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
11,162 |
Cybersecurity |
|
|
|
2 |
2,819 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,994 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
7,245 |
Programming |
|
|
|
2 |
4,491 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
7,095 |
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,691 |
UNIX for Dummies Questions & Answers |
usleep(3C) usleep(3C)
NAME
usleep - suspend execution for interval in microseconds
SYNOPSIS
#include <unistd.h>
int usleep(useconds_t useconds);
The usleep() function suspends the caller from execution for the number of microseconds specified by the useconds argument. The actual sus-
pension time might be less than requested because any caught signal will terminate usleep() following execution of that signal's catching
routine. The suspension time might be longer than requested by an arbitrary amount because of the scheduling of other activity in the sys-
tem.
If the value of useconds is 0, then the call has no effect.
The use of the usleep() function has no effect on the action or blockage of any signal. In a multithreaded process, only the invoking
thread is suspended from execution.
On completion, usleep() returns 0. There are no error retruns.
No errors are returned.
USAGE
The usleep() function is included for its historical usage. The nanosleep(3RT) function is preferred over this function.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
nanosleep(3RT), sleep(3C), attributes(5), standards(5)
16 Mar 2005 usleep(3C)