The state of the threads when starting the signal handler

Suppose a multi-threaded application with a signal processor defined in it.

Now, if the signal is supplied to PROCESS and the signal handler is called. My doubt is what happens to other threads during the period signal handler. They continue to work as if nothing happened or they are suspended for this period .. or ...?

Also, if someone can tell me WHY, to justify the answer?

+3
source share
2 answers

The specification is pretty clear on how signals and flows interact:

, , , sigwait(), .

, ( ).

+4

: . , . , , - , - .

+1

Source: https://habr.com/ru/post/1774589/


All Articles