To create a thread one uses pthread_create. To terminate it, pthread_cancel, to wait for it's termination pthread_join... but how do we check if a thread has exit, (or not) by it's id, without blocking on the function's call ?
In windows it would be WaitForSignleObject(thread_handle,0)