Provided by: manpages-ko-dev_4.27.0-1_all bug

이름

       sleep - 일정한 초시간 만큼 정지한다.

라이브러리

       표준 C 라이브러리 (libc, -lc)

요약

       #include <unistd.h>

       unsigned int sleep(unsigned int seconds);

설명

       sleep()   causes  the  calling  thread to sleep either until the number of real-time seconds specified in
       seconds have elapsed or until a signal arrives which is not ignored.

반환값

       Zero if the requested time has elapsed, or the  number  of  seconds  left  to  sleep,  if  the  call  was
       interrupted by a signal handler.

속성

       이 섹션에서 사용되는 용어에 대한 설명은 attributes(7)을 참조하십시오.
       ┌─────────────────────────────────────────────────────────┬───────────────┬─────────────────────────────┐
       │ 상호 작용속성번호                        │
       ├─────────────────────────────────────────────────────────┼───────────────┼─────────────────────────────┤
       │ sleep()                                                 │ Thread safety │ MT-Unsafe sig:SIGCHLD/linux │
       └─────────────────────────────────────────────────────────┴───────────────┴─────────────────────────────┘

버전S

       On  Linux,  sleep()  is implemented via nanosleep(2).  See the nanosleep(2)  man page for a discussion of
       the clock used.

       On some systems, sleep()  may be implemented using alarm(2)  and SIGALRM (POSIX.1 permits  this);  mixing
       calls to alarm(2)  and sleep()  is a bad idea.

표준

       POSIX.1-2008.

이력

       POSIX.1-2001.

CAVEATS

       시그널 핸들로부터 longjmp(3)를 사용 하거나 정지 중에 SIGALRM 핸들을 수정할 경우, 알 수 없는 결과가 발생할
       수 있다.

추가 참조

       sleep(1), alarm(2), nanosleep(2), signal(2), signal(7)

번역

       이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 배성훈 <plodder@kldp.org>

       이  번역은  무료  문서입니다. 저작권 조건에 대해서는 GNU General Public License 버전 3 이상을 읽으십시오.
       책임이 없습니다.

       이  매뉴얼  페이지의  번역에서   오류를   발견하면   translation-team-ko@googlegroups.com   로   이메일을
       보내주십시오.

Linux man-pages 6.9.1                            2024년 5월 2일                                         sleep(3)