Posted on 2003-11-11
I have a few doubts regarding threads in linux.
How can i retrieve the status of a thread in linux? Using pthread_join( ), calling thread waits for the termination of the specified thread. I want to know if there is any function/way that my calling thread doesn't have to wait and comes to know that a particular thread has not terminated and is still active.
Threads terminate as soon as my main thread exits. Can i make my multithreaded application run even after main() exits and let other threads continue (without using pthread_join)?