11 What does alarm() do
Reveal answer
Fill a bubble to check yourself
11 What does alarm() do
1 Wakes up kernel from sleeping
2 Wakes up devices from sleeping
3 Invokes a kernel to send SIGALARM to the calling process
4 Invokes a kernel to send SIGALARM to the registered process
The alarm() function sends a SIGALRM signal to the calling process after a specified number of seconds. The process must have registered a signal handler for SIGALRM to catch it. Option D correctly states the signal is sent to the registered process (the one that called alarm() and set up the handler).