查看某一进程的所有线程
top -p 4361 -H
top - 17:00:31 up 7 days, 10:47, 5 users, load average: 0.00, 0.00, 0.00
Tasks: 4 total, 0 running, 4 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 509140k total, 490876k used, 18264k free, 165596k buffers
Swap: 1489912k total, 127072k used, 1362840k free, 211848k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4369 root -72 0 30776 2356 1596 S 3 0.5 0:00.72 maintest
4361 root 20 0 30776 2356 1596 S 0 0.5 0:00.00 maintest
4362 root 20 0 30776 2356 1596 S 0 0.5 0:00.01 maintest
4363 root 20 0 30776 2356 1596 S 0 0.5 0:00.14 maintest
PR为优先级, 负值越负的厉害, 优先级越高, SCHED_FIFO和SCHED_RR 两种情况 其范围为 1和99, 显示为负值
也可以用
ps -eLf 查看所有所有进程的所有线程
阅读(18503) | 评论(0) | 转发(0) |