I tried googling it, but I can't find it. I am looking for:
number of threads in process X
total number of threads running currently
|
I tried googling it, but I can't find it. I am looking for:
| ||||
|
feedback
|
|
To get the number of threads for a given pid:
To the get the sum of all threads running in the system:
| |||
|
feedback
|
|
I'm basing this answer around If you want to filter that by a process, you could try something like this:
We subtract 1 because grep will show in that list. For all threads in general this should work:
We subtract one this time because there is a header row. | |||
|
feedback
|