LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Status of thread (https://www.linuxquestions.org/questions/programming-9/status-of-thread-208832/)

iftiuk 07-23-2004 03:14 PM

Status of thread
 
In linux is there a way for one thread to know the status of another thread. For example how can thread1 gets to know whether thread2 is running or not.

Chris Parker 07-29-2004 05:50 PM

Look at pthread_join () or use a mutex.

Post if you need some sample code. It is pretty easy to find if you search around. I think that the LDP has some good sample code (if I remeber correctly).


All times are GMT -5. The time now is 12:01 PM.