linux view thread status
1. > top
Can display all system processes
Press u, and then enter the corresponding execution user name, such as Tom
You can see all the processes started by the Tom user and their corresponding pids
2. > pstack pid
You can see the running status of each thread under this pid
E.g:
Query Java threads
ps -ef | grep java
ps -aux | grep java