阅读背景:

对于pthread,如何从主线程中杀死子线程。

来源:互联网 

I use pthread_create to create several child threads. At a time, the main thread wants to kill all child threads or there will be segment falut. Which function should I use to finish that? I searched the answer from google and got function like pthread_kill. But I did not know which signal should I send to the child thread to kill them. My running environment is RHEL 5.4 and programming language is C.I use pthread_create to create several child th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: