Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 谁在实时进程的fork()之后首先运行?_Linux_Linux Kernel_Kernel - Fatal编程技术网

Linux 谁在实时进程的fork()之后首先运行?

Linux 谁在实时进程的fork()之后首先运行?,linux,linux-kernel,kernel,Linux,Linux Kernel,Kernel,在Linux内核2.6.39.4中,sched_fork()将调用相应的task_fork(),这不是由sched_rt类实现的。在sched\u fair类中,如果设置了sysctl\u sched\u child\u runs\u first,则task\u fork()将确保首先运行子级。那么sched\u rt呢?这是否意味着先运行的sysctl\u sched\u child\u对实时进程没有影响 if(sysctl\u sched\u child\u先运行&&curr&&entity

在Linux内核2.6.39.4中,
sched_fork()
将调用相应的
task_fork()
,这不是由
sched_rt
类实现的。在
sched\u fair
类中,如果设置了
sysctl\u sched\u child\u runs\u first
,则
task\u fork()
将确保首先运行子级。那么
sched\u rt
呢?这是否意味着先运行的
sysctl\u sched\u child\u
对实时进程没有影响

if(sysctl\u sched\u child\u先运行&&curr&&entity\u后运行(curr,se)){
//确保孩子先跑
交换(货币->货币时间,se->货币时间);
重新调整的任务(rq->curr);
}
和的可能重复和可能重复