Viewing threads of a process in Linux

If you are working on a multi threaded application in Linux, then you will definitely require a method to observe the threads associated with the application that you are developing.

Method #1

View process with threads,

using ps command.

$ps -eT 

The -e will show every process and -T will show threads.

Method #2

Using top command.

top -H

or to be precise.

top -H -p pid

Leave a Reply

Your email address will not be published. Required fields are marked *