查询一个进程中有多少个线程

个人觉得最简单就是pstack。或者通过 cat  /proc/pid/status .还有一个是ps hH p pid | wc -l

猜你喜欢

转载自blog.csdn.net/tiantao2012/article/details/80571803