ps xH
手册中说:H Show threads as if they were processes

这样可以查看所有存在的线程。

ps -mp
手册中说:m Show threads after processes

这样可以查看一个进程起的线程数。