On Linux, to get a thread count for particular process, issue:
ps UH p PID_OF_PROCESS | wc -l
Removing the pipe to the “| wc -l” yields more information about the running threads.
On Linux, to get a thread count for particular process, issue:
ps UH p PID_OF_PROCESS | wc -l
Removing the pipe to the “| wc -l” yields more information about the running threads.