Multithreading – multithreaded signal processing
•
Java
>In UNIX, if a multithreaded process sends a signal, which thread will be the thread executing the processing function?
Solution
According to man 7 signal, all threads in the process share the same signal handler, and if a signal is transmitted to a process with multiple threads without blocking signals, one of them is arbitrarily selected to receive it
Machines with multiple CPUs do not change these semantics
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码