Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
A process can use setitimer() or alarm() to set a timer, so that it receives a signal after the passage of a specified amount of real or process time. One use of timers is to set an upper limit on the time for which a system call can block.
Applications that need to suspend execution for a specified interval of real time can use a variety of sleep functions for this purpose.