查看进程上的线程数量

先查进程编号

 之后

pstree -p 5240

 想直接看数字的话:

pstree -p 5240 | wc -l
原文地址:https://www.cnblogs.com/lzh1043060917/p/15598271.html