![maylasia](/avatars/44636.jpg)
maylasia
14.12.2019 •
Computers and Technology
#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?
Solved
Show answers
More tips
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
- S Style and Beauty How are artificial nails removed?...
- F Family and Home How to Sew Curtain Tapes: Best Tips from Professionals...
- H Horoscopes, Magic, Divination How to Cast a Love Spell on a Guy? Guide for Guys...
- F Family and Home How to Properly Use a Water Level?...
- L Legal consultation What Documents Are Required for a Russian Passport?...
- H Health and Medicine How to Treat Styes: Causes, Symptoms, and Home Remedies...
- F Family and Home Protect Your Home or Apartment from Pesky Ants...
- T Travel and tourism Lost in the Catacombs: What to Do?...
Answers on questions: Computers and Technology
- M Mathematics 1500 computer; 7% tax...
- M Mathematics Is (1, 1) a solution to this system of inequalities? y ≥ 9 y ≥ x + 7...
- H History Why was the war Production Board (WPB) established during World War II? A. to control inflation by keeping prices low on most goods and services B. to allot resources to the armed...
Ответ:
it would be vanquish