[通告] 本论坛迁移啦~请前往位于 https://forum.archlinuxcn.org/ 的新论坛。所有帖子和参与的用户都已经迁移。
您正在访问的是原 bbs.archlinuxcn.org 的静态存档。本页面的新地址位于 https://forum.archlinuxcn.org/t/topic/8070。
页次: 1
主题已关闭
以下代码运行时,报错(使用root运行也是同样的错误)
sched_setscheduler(): Operation not permitted
希望各位大神们帮忙解决,谢谢。
struct sched_param param;
param.sched_priority = 1;
if (sched_setscheduler(getpid(), SCHED_RR, ¶m))
printf("sched_setscheduler(): %s\n", strerror(errno));离线
页次: 1
主题已关闭