Multiple choice technology operating systems

11 What does alarm() do

  1. 1 Wakes up kernel from sleeping

  2. 2 Wakes up devices from sleeping

  3. 3 Invokes a kernel to send SIGALARM to the calling process

  4. 4 Invokes a kernel to send SIGALARM to the registered process

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

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).