Individual thread priority checking using command line in linux Individual thread priority checking using command line in linux multithreading multithreading

Individual thread priority checking using command line in linux


Run ps with-m -l. It will list all the thread and priority with respect to particular PID

ps -m -l [PID]

Example:

PC@PCuser:~$ ps -m -l 10070F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY        TIME CMD0 -  1000 10070     1  0   -   - - 31325 -      ?          0:42 gedit0 S  1000     -     -  0  80   0 -     - poll_s -          0:41 -1 S  1000     -     -  0  80   0 -     - poll_s -          0:00 -1 S  1000     -     -  0  80   0 -     - poll_s -          0:00 -

EDIT:

PC@PCuser:~$ ps -T -l [PID]F S   UID   PID  SPID  PPID  C PRI  NI ADDR SZ WCHAN  TTY        TIME CMD0 S  1000 10070 10070     1  0  80   0 - 31325 poll_s ?          0:42 gedit1 S  1000 10070 10073     1  0  80   0 - 31325 poll_s ?          0:00 gedit1 S  1000 10070 10074     1  0  80   0 - 31325 poll_s ?          0:00 gedit


$ ps -T -l [PID]can give me more information, but it can't provide the thread name on my system.I combine this result and (gdb) info threadto get more details.