*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ftn/sleep (3)              
Title
Content
Arch
Section
 

Contents


Tk_Sleep(3Tk)							 Tk_Sleep(3Tk)


NAME    [Toc]    [Back]

     Tk_Sleep -	delay execution	for a given number of milliseconds

SYNOPSIS    [Toc]    [Back]

     #include <tk.h>

     Tk_Sleep(ms)

ARGUMENTS    [Toc]    [Back]

     intms(in)
     Number of milliseconds to sleep.

DESCRIPTION    [Toc]    [Back]

     This procedure delays the calling process by the number of	milliseconds
     given by the ms parameter,	and returns after that time has	elapsed.  It
     is	typically used for things like flashing	a button, where	the delay is
     short and the application needn't do anything while it waits.  For	longer
     delays where the application needs	to respond to other events during the
     delay, the	procedure Tk_CreateTimerHandler	should be used instead of
     Tk_Sleep.

KEYWORDS    [Toc]    [Back]

     sleep, time, wait
SLEEP(3F)							     SLEEP(3F)


NAME    [Toc]    [Back]

     sleep - suspend execution for an interval

SYNOPSIS    [Toc]    [Back]

     subroutine	sleep (itime)

DESCRIPTION    [Toc]    [Back]

     Sleep causes the calling process to be suspended for itime	seconds.  The
     actual time can be	up to 1	second less than itime due to granularity in
     system timekeeping.

FILES    [Toc]    [Back]

     /usr/lib/libU77.a

SEE ALSO    [Toc]    [Back]

      
      
     sleep(3)

ORIGIN    [Toc]    [Back]

     MIPS Computer Systems
SLEEP(3C)							     SLEEP(3C)


NAME    [Toc]    [Back]

     sleep - suspend execution for interval

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

     unsigned sleep (unsigned seconds);

DESCRIPTION    [Toc]    [Back]

     The current thread	is suspended from execution for	the number of seconds
     specified by the argument.	 The actual suspension time may	be less	than
     that requested because any	caught signal will terminate the sleep
     following execution of that signal's catching routine.  Also, the
     suspension	time may be longer than	requested by an	arbitrary amount due
     to	the scheduling of other	activity in the	system.	 The value returned by
     sleep will	be the ``unslept'' amount (the requested time minus the	time
     actually slept) in	case of	premature arousal due to a caught signal.

NOTES    [Toc]    [Back]

     Unlike previous implementations, sleep is implemented with	the sginap(2)
     system call rather	than with alarm(2). Therefore, there are no unusual
     side effects with the SIGALRM signal; its effect is like that of any
     other signal.

SEE ALSO    [Toc]    [Back]

      
      
     alarm(2), sginap(2), pause(2), sigaction(2), sigset(2)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
scsi_max_qdepth HP-UX maximum number of I/Os that target will queue up for execution
mstohz NetBSD convert milliseconds to system clock ticks
timef IRIX Returns elapsed wall-clock time in milliseconds since the previous call to TIMEF
sleep Linux delay for a specified amount of time
vlGetPathDelay IRIX get the time delay between two jacks in a VLPath
restrictev IRIX filter and selectively delay X events
after IRIX Execute a command after a time delay
hzto OpenBSD translate absolute time to timeout delay
tvtohz OpenBSD translate time period to timeout delay
kbdrate Linux reset the keyboard repeat rate and delay time
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service