title: PThread monitoring
body: <p>How does one get the status of a Pthread and what would be a good way to monitor the threads statuses continuously so that if anything goes wrong I can kill the other threads that are linked?</p>
  
  <p>I have two threads, one depends on the constant calculation result and I want to monitor the threads and kill a thread which might end up running alone.</p>
  
  <p>What is a good way of doing this? </p>