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.
|
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. |