Open Josen-B opened 1 month ago
通过 sched_get_priority_min 和 sched_get_priority_max 获取了内核允许的最大和最小优先级(一般就设置为和 Linux 一致,从 1 到 99),然后通过 sched_setscheduler 设置了自己的优先级
sched_get_priority_min
sched_get_priority_max
sched_setscheduler
涉及PR:
通过
sched_get_priority_min
和sched_get_priority_max
获取了内核允许的最大和最小优先级(一般就设置为和 Linux 一致,从 1 到 99),然后通过sched_setscheduler
设置了自己的优先级