1.某一进程所有的线程个数.启动时间 ps max -o lstart,lwp,pid,nlwp,cmd|more lstart: STARTED time the command started.nlwp: NLWP number of lwps (threads) in the process. (alias thcount).lwp: LWP lwp (light weight process, or thread) ID of the lwp being…
1.查看文件 /proc/${pid}/status2.pstree -p ${pid}3.输入 top -bH -d 3 -p ${pid}top -H手册中说:-H : Threads toggle 加上这个选项启动top,top一行显示一个线程,否则,它一行显示一个进程.4.ps xH手册中说:H Show threads as if they were processes 这样可以查看所有存在的线程.5.ps -mp <PID>手册中说:m Show threads after pro…