Setting an Alarm (The GNU C Library)
21.5 Setting an Alarm. The alarm and setitimer functions provide a mechanism for a process to interrupt itself in the future. They do this by setting a timer; when the timer expires, the process receives a signal. Each process has three independent interval timers available: