ps xH手册中说:H Show threads as if they were processes这样可以查看所有存在的线程。
ps -mp手册中说:m Show threads after processes这样可以查看一个进程起的线程数。
转载于:https://blog.51cto.com/devin223/1664822