title: On Linux, in C, how can I get all threads of a process?
body: <p>How to iterate through all tids of all threads of the current process? Is there some way that doesn't involve diving into <code>/proc</code>?</p>