How to get a thread scheduling policy from the console

Is it possible to calculate thread scheduling policy from linux console? I mean, is it possible to get something that pthread_getschedparam() returns, but from the console?

I need to find out which policy is SCHED_FIFO, SCHED_RR or SCHED_OTHER .

+4
source share
1 answer

The ps -eLfc command will provide you with a list of threads that work with their scheduling policy under the CLS line. RR (Round Robin), TS (Time Sharing) are some of the planning policies that may be present. If you want to start the process and specify a specific scheduling policy for your threads, you can use the chrt command.

+4
source

Source: https://habr.com/ru/post/1441981/


All Articles