无法调整应用程序中的线程优先级
使用应用时,无法调整线程优先级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
参数写错了吧,policy = UNKNOWN
页:
[1]