How to solve that pthread_signal sent 0x50000 signals but only 0x4fe79 were awakened?

phenomenon:

Sending pthread_signal sent 0x50000 signals but only 0x4fe79 tasks were processed?

solve:

Generally, because the thread task event is too long, all threads are in the awake state, so even if the signal is sent, it will be ignored. The number of thread pools can be increased

Guess you like

Origin blog.csdn.net/star871016/article/details/109649694