Prioritizing individual threads using the command line on Linux

I can see the number of threads used in the application by going to / proc / $ (pidof task) / and giving

cat status.

Is there a way to check the priority of individual threads in Linux using commands?

Regards,
Learner

+4
source share
3 answers

Run ps c -m -l. It will display the entire stream and priority regarding a specific PID

ps -m -l [PID]

Example:

PC@PCuser:~$ ps -m -l 10070

F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY        TIME CMD
0 -  1000 10070     1  0   -   - - 31325 -      ?          0:42 gedit
0 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 CMD
0 S  1000 10070 10070     1  0  80   0 - 31325 poll_s ?          0:42 gedit
1 S  1000 10070 10073     1  0  80   0 - 31325 poll_s ?          0:00 gedit
1 S  1000 10070 10074     1  0  80   0 - 31325 poll_s ?          0:00 gedit
+2
source

Or, top -H(or top, and then press the key H) for interactive viewing.

. https://superuser.com/questions/286752/unix-ps-l-priority

0

$ -T -l [PID] , . (gdb) .

0

All Articles