Question: #include . . . void sig _ handler ( ) { static int i = 1 ; printf ( Beep ) ; alarm
#include void sighandler static int i ; printfBeep
; alarmi; i; int main struct sigaction sa; sasaflags ; sasahandler sighandler; ifsigactionSIGALRM &sa NULL printfFailed to bind handler.
; exit; printfGoing into an infinite loop.
; alarm; while; return ;
Suppose the above program is run for seconds after it prints "Going into an infinite loop". The program is run multiple times where the "system load" from other processes sharing the cpu will vary from none to many other processes. Which best characterizes how many times "Beep" is printed?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
