sleep(3) Library Functions Manual sleep(3) NOMBRE sleep - duerme durante el numero de segundos especificado BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include unsigned int sleep(unsigned int segundos); DESCRIPCION 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. VALOR DEVUELTO Zero if the requested time has elapsed, or the number of seconds left to sleep, if the call was interrupted by a signal handler. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-------------------+--------------------+-----------------------------+ |Interfaz | Atributo | Valor | +-------------------+--------------------+-----------------------------+ |sleep() | Seguridad del hilo | MT-Unsafe sig:SIGCHLD/linux | +-------------------+--------------------+-----------------------------+ VERSIONES 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. ESTANDARES POSIX.1-2008. HISTORIAL POSIX.1-2001. CAVEATS Utilizar longjmp() desde un manejador de senales o modificar el manejo de SIGALRM mientras se esta durmiento, producira resultados no definidos. VEASE TAMBIEN sleep(1), alarm(2), nanosleep(2), signal(2), signal(7) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 sleep(3)