sleep(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

sleep(3c)

sleep(3C)                Standard C Library Functions                sleep(3C)

NAME
       sleep - suspend execution for an interval of time

SYNOPSIS
       #include <unistd.h>

       unsigned int sleep(unsigned int seconds);

DESCRIPTION
       The sleep() function suspends the calling thread from execution for the
       number of seconds specified by the argument. The actual suspension time
       may  be  less  than  that  requested  because any signal caught by that
       thread will terminate the sleep() following execution of that  signal's
       catching  routine.  The suspension time may be longer than requested by
       an arbitrary amount due to the scheduling of other activity in the sys‐
       tem.


       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.

RETURN VALUES
       If  sleep()  returns  because the requested time (or more) has elapsed,
       the return value will be 0.


       If the caller is woken early by the delivery of a signal, the value re‐
       turned by sleep() will be the "unslept" amount (the requested time  mi‐
       nus the time actually slept).

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Interface  StabilityCommitted  _  MT-LevelAsync-Signal-
       Safe _ StandardSee standards(7).


SEE ALSO
       nanosleep(3C), attributes(7), standards(7)

HISTORY
       The  sleep()  function has been included in all Sun and Oracle releases
       of Solaris.

Oracle Solaris 11.4               27 Aug 2025                        sleep(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3