subject

#include void sig_handler(){ static int i = 1; printf("beep\n"); alarm(i); ++i; } int main(){ struct sigaction sa; sa. sa_flags = 0; sa. sa_handler = sig_handler; if(sigaction(sigalrm, & sa, null) ! = 0){ printf("failed to bind handler.\n"); exit(1); } printf("going into an infinite loop.\n"); alarm(1); while(1); return 0; }
suppose the above program is run for 7.5 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?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
What’s the process of observing someone actually working in a career that interests you?
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
You know the right answer?
#include void sig_handler(){ static int i = 1; printf("beep\n"); alarm(i); ++i; } int main(){ s...
Questions
question
Chemistry, 18.07.2019 10:30
Questions on the website: 13722361