使用Pthread_kill()检查线程是否终止

时间:2017-11-29 03:52:35

标签: c pthreads

ret_kill = pthread_kill(的thread_id,0);

if(ret_kill == 0) {
doesthis means the thread is still alive ? }

否则 {

does this mean thread is terminated and is joinable

}

0 个答案:

没有答案