top

top -Hp PID

查看指定进程的所有线程,此模式下的PID是指线程ID
top -p PID 进入后,再按H也可进入此模式

top -H -n1 -b -p PID

-b      batch mode 批处理
-n1     一次