root@firefly:/home/firefly/test# gcc test.c
root@firefly:/home/firefly/test# ./a.out
policy = SCHED_OTHER
Show current configuration of priority
max_priority = 0
min_priority = 0
show SCHED_FIFO of priority
max_priority = 99
min_priority = 1
show SCHED_RR of priority
max_priority = 99
min_priority = 1
show priority of current thread
priority = 0
Set thread policy
policy = UNKNOWN
set SCHED_RR policy
policy = UNKNOWN
Restore current policy
policy = UNKNOWN
Hello, world