high-resolution sleep NAME nanosleep - high-resolution sleep LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <time...high-resolution sleep with specifiable clock NAME clock_nanosleep - high-resolution sleep with specifiable clock LIBRARY Standard C library ( libc , -lc ),......Thread safety MT-Unsafe sig:SIGCHLD/linux VERSIONS On Linux, sleep () is implemented via nanosleep (2). See the nanosleep (2) man page for a discussion of the clock used. On som…...ANDARDS None. HISTORY 4.3BSD, POSIX.1-2001. POSIX.1-2001 declares it obsolete, suggesting nanosleep (2) instead. Removed in POSIX.1-2008. On the original BSD implementation, and…...d.h> , <signal.h> , <sys/select.h> , and <sys/stat.h> . SEE ALSO clock_gettime (2), clock_nanosleep (2), nanosleep (2), timerfd_gettime (2), timer_gettime (2), time_t (3type), t…...unctions allow a program to sleep (suspend execution) for a specified period of time; see nanosleep (2), clock_nanosleep (2), and sleep (3). Various system calls allow a process…...The interaction of this function with other timer functions such as alarm (2), sleep (3), nanosleep (2), setitimer (2), timer_create (2), timer_delete (2), timer_getoverrun (2),…...t by select (2), pselect (2), poll (2), ppoll (2), epoll_wait (2), epoll_pwait (2), clock_nanosleep (2), nanosleep (2), and futex (2) (and thus the library functions implemented…...tarted, should adjust their time-related parameters—namely poll (2) (since Linux 2.6.24), nanosleep (2) (since Linux 2.6), clock_nanosleep (2) (since Linux 2.6), and futex (2), …...r also provides this type: <time.h> . SEE ALSO clock_adjtime (2), clock_getres (2), clock_nanosleep (2), timer_create (2), clock_getcpuclockid (3)...r (3am), readdir (3am), readfile (3am), revoutput (3am), rwarray (3am). gettimeofday (2), nanosleep (2), select (2). AUTHOR Arnold Robbins, arnold@skeeve.com . COPYING PERMISSIO…...L and the specified time interval has passed. (For details of the timespec structure, see nanosleep (2).) The nitems argument specifies the number of items in aiocb_list . Each …...fects various APIs that measure against these clocks, including: clock_gettime (2), clock_nanosleep (2), nanosleep (2), timer_settime (2), timerfd_settime (2), and /proc/uptime …...ad_condattr_init (3), pthread_mutex_lock (3), pthread_mutex_unlock (3), gettimeofday (2), nanosleep (2). EXAMPLE Consider two shared variables x and y , protected by the mutex m…...ad_condattr_init (3), pthread_mutex_lock (3), pthread_mutex_unlock (3), gettimeofday (2), nanosleep (2). EXAMPLE Consider two shared variables x and y , protected by the mutex m…...ad_condattr_init (3), pthread_mutex_lock (3), pthread_mutex_unlock (3), gettimeofday (2), nanosleep (2). EXAMPLE Consider two shared variables x and y , protected by the mutex m…...ad_condattr_init (3), pthread_mutex_lock (3), pthread_mutex_unlock (3), gettimeofday (2), nanosleep (2). EXAMPLE Consider two shared variables x and y , protected by the mutex m…...ad_condattr_init (3), pthread_mutex_lock (3), pthread_mutex_unlock (3), gettimeofday (2), nanosleep (2). EXAMPLE Consider two shared variables x and y , protected by the mutex m…...ad_condattr_init (3), pthread_mutex_lock (3), pthread_mutex_unlock (3), gettimeofday (2), nanosleep (2). EXAMPLE Consider two shared variables x and y , protected by the mutex m…...ng functions are present: pthread_condattr_getclock () pthread_condattr_setclock () clock_nanosleep () If CLOCK_REALTIME is changed by the function clock_settime (), then this a…