title: check for threads still running after program exits
body: <p>gcc 4.4.3 c89 pthreads</p>
  
  <p>I use valgrind for checking memory errors.</p>
  
  <p>I am just wondering if there is any tool for linux that can detect running threads that haven't been terminated after the program finishes.</p>
  
  <p>I am running a multi-thread application and need a tool to make sure all threads have finished. </p>
  
  <p>Many thanks for any suggestions,</p>