Unformatted text preview: Which of the problems mentioned earlier by them are now corrected in this code? With this more reliable implementation of sleep, explain what will happen in the following case. We do an alarm( 10) and 3 wall clock seconds later do a sleep(5) , what happens? The sleep will return in 5 seconds (assuming that some other signal isn’t caught in that time), but will another SIGALRM be generated 2 seconds later? If yes, explain how the code will ensure delivery of the SIGALRM for the original alarm setting. If no, then modify this code to achieve that functionality. Also, the originally intended disposition for SIGALRM should be preserved. Question 2: From Tanenbaum’s book (Third edition) Problem 7 from Chapter 2. Question 3: From Tanenbaum’s book (Third edition) Problem 14 from Chapter 2....
View Full Document
- Fall '08
- Operating Systems, English-language films, Following, Syntax highlighting