multi-threaded signal handling multi-threaded signal handling multithreading multithreading

multi-threaded signal handling


According to man 7 signal, all threads in the process share the same signal handler, and if a signal is delivered to a process with multiple threads that have not blocked the signal, one of them is arbitrarily chosen to receive it.

Having a multi-CPU machine will not change these semantics.