linux查看某个进程的线程数
1.根据进程号进行查询:
# pstree -p 进程号
# top -Hp 进程号
cat /proc/${pid}/status
# pstree -p `ps -e | grep server | awk '{print $1}'`
# pstree -p `ps -e | grep server | awk '{print $1}'` | wc -l
#ps -Lf 1.根据进程号进行查询:
# pstree -p 进程号
# top -Hp 进程号
cat /proc/${pid}/status
# pstree -p `ps -e | grep server | awk '{print $1}'`
# pstree -p `ps -e | grep server | awk '{print $1}'` | wc -l
#ps -Lf