1、查看用户下所有进程
ps -ef

2、查看指定进程下的线程数量
ps -ef -o pid,thcount|grep xxxxx

3、查看所有进程的线程数及线程ID
ps -ef -mo pid,thcount,tid

3、查看系统所有进程的线程情况
ps -ef -mo THREAD