Is this possible to figure out thread scheduling policy from linux console? I mean is it possible to receive something what pthread_getschedparam()
returns but from console?
I need to figure out whatever policy is SCHED_FIFO, SCHED_RR or SCHED_OTHER
.
The command ps -eLfc will give you a list of threads running along with their scheduling policy under the row titled CLS. RR (Round Robin), TS (Time Sharing) are some of the scheduling policies that may be present. If you want to start a process and mention a particular scheduling policy for its threads then you can use command chrt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With