It depends on what flavor of UNIX and what implementation of threads you are using. In some cases threads and processes are one and the same -- for example, POSIX threads in Linux...
If indeed your threads are actually processes then the "ps" command would be useful.
The ptree command will show you all the parents and children of a particular process, but not the threads. The -L option to the ps command (under Solaris) will show you the threads.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.