How to get the number of threads of a running process in linux?

Answered
Public

2 answers

Vedat Yilmaz Staff 01 July 2015

cat /proc/<pid>/status | grep Threads
or
ps huH p <pid> | wc -l

#1
  1. Vedat Yilmaz Staff 01 July 2015
    to list the threads just run: ps -T -p <pid>
Vedat Yilmaz Staff 01 July 2015

to list the threads just run: ps -T -p <pid>

#2

Please login or Register to Submit Answer

Yandex.Metrica