title: POSIX API call to list all the pthreads running in a process
body: <p>I have a multi-threaded application in a POSIX/Linux environment - I have no control over the code that creates the pthreads. At some point the process - owner of the pthreads - receives a signal.</p>
  
  <p>The handler of that signal should abort,cancel or stop all the pthreads and log how many pthreads where running.</p>
  
  <p>My problem is that I could not find how to list all the pthreads running in process. </p>