方式一:
cat /proc/[pid]/status
展示结果中, Threads 后边对应的数字就是进程拥有的线程数量
方式二:
ps hH p 3805|wc -l
来源: http://www.bubuko.com/infodetail-2717938.html