0

ret_kill=pthread_kill(thread_id,0);

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

else {

does this mean thread is terminated and is joinable

}

alk
  • 69,737
  • 10
  • 105
  • 255
  • See this: https://stackoverflow.com/questions/2156353/how-do-you-query-a-pthread-to-see-if-it-is-still-ru – Erik Alapää Nov 30 '17 at 11:49
  • Possible duplicate of [How do you query a pthread to see if it is still running?](https://stackoverflow.com/questions/2156353/how-do-you-query-a-pthread-to-see-if-it-is-still-running) – alk Dec 01 '17 at 17:29

0 Answers0