进程 | 查询进程中包含多少线程

查询进程中包含多少线程

命令:pstree -p PID | wc -l
结果:直接返回线程数量。

原文地址:https://www.cnblogs.com/CristL/p/14099440.html