How do i display process threads using top on linux for a specific task group id?



  • Man page for ps.

           -H  :Threads-mode operation
                Instructs top to display individual threads.  Without this command-line option a summa‐
                tion  of  all threads in each process is shown.  Later this can be changed with the `H'
                interactive command.
           tgid        TGID      a number representing the thread group to which a task belongs (alias
                                 pid).  It is the process ID of the thread group leader.
    

    The number is the tgid, see description above.

    $ top -H -p 7311
    

Log in to reply
 

© Lightnetics 2019