Given that a process establishes a signal handler for SIGINTwhere the handler increments a counter that was initially set to 0and 5 SIGINT signals are sent to the process, what is the value ofthe counter 1 second after the last signal is sent?
Solution
Please find the following answer on counter increment when thewe handle the SIGINT interrupt.
Answer:
When ever the process handles SIGINT, counter is incrementedfrom initial value of 0. If the process handles 5 SIGINT then thevalue of the counter at the end of last (which is 5th) SIGINT is5.
Value of the counter 1 second after the last signal
OR
OR