Linux view the threads of the specified process

1. Through the "-T" option of the ps command

-T Show threads, possibly with SPID column.

$ ps -T -p <pid>

2. Through the "-H" option of the top command

-H :Threads-mode operation

top -H -p <pid>

Guess you like

Origin blog.csdn.net/furongwei123/article/details/124129954