Firefly开源社区

标题: 无法调整应用程序中的线程优先级 [打印本页]

作者: wangzhijun    时间: 2022-3-22 11:28
标题: 无法调整应用程序中的线程优先级
使用应用时,无法调整线程优先级

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

tchip_askquestions

test_code.txt

2.28 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1


作者: 时间的蝴蝶    时间: 2022-3-23 17:01
参数写错了吧,policy = UNKNOWN




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1