您尚未登录。

公告

[通告] 本论坛迁移啦~请前往位于 https://forum.archlinuxcn.org/ 的新论坛。所有帖子和参与的用户都已经迁移。

您正在访问的是原 bbs.archlinuxcn.org 的静态存档。本页面的新地址位于 https://forum.archlinuxcn.org/t/topic/8070

#1 2015-01-06 10:02:43

jxymax
会员
注册时间: 2015-01-06
帖子: 9

【求助】sched_setscheduler(): Operation not permitted

以下代码运行时,报错(使用root运行也是同样的错误)
sched_setscheduler(): Operation not permitted
希望各位大神们帮忙解决,谢谢。

struct sched_param param;
param.sched_priority = 1;
if (sched_setscheduler(getpid(), SCHED_RR, &param))
    printf("sched_setscheduler(): %s\n", strerror(errno));

离线

页脚