pthread_create创建sched_rr权限线程失败

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

pthread_create创建sched_rr权限线程失败

1,539 次查看
lcax200000
Contributor I

我的linux应用程序在.service文件中的execstartpre使用"echo $$ > /sys/fs/cgroup/cpu,cpuacct/tasks"希望将自己的pid加入到cgroup文件中,使得程序自身的子线程A可以创建出另一个子线程B,线程B拥有sched_rr权限且sched_priority=1和PTHREAD_CREATE_JOINABLE,为什么这么做线程B有概率会创建失败,提示"Operation not permitted"

0 项奖励
回复
1 回复

1,519 次查看
nxf92355
NXP Employee
NXP Employee

Hi dfds sdfds

 

Hope you are doing well.

 

I think this is kernel related query. we suggest you please go kernel related Communities.

 

Thanks & Regards,

Tushar