sched_batch和sched_other调度有什么区别?

时间:2015-05-17 07:38:27

标签: linux operating-system scheduling

我正在研究Ubuntu项目。没有找到sched_batch和sched_other之间的明显区别。谁能告诉我差异呢?

2 个答案:

答案 0 :(得分:8)

假定使用sched_batch调度的线程是非交互式的,但CPU绑定并针对吞吐量进行了优化。因此,此策略更适合缓存。默认sched_batch时间片为1.5秒。此外,在SMP的情况下,sched_batch将迁移到具有高空闲性的核心(相对于非批处理线程)。

答案 1 :(得分:1)

主要区别在于sched_batch is a variant of sched_idle。即如果sched_other进程不希望这样的进程只能使用cpu。

相关问题