2.2.1 核心概念 - 调度实体
简要介绍调度器内部的调度单元,即Sched Entity
/* file: include/linux/sched.h */
struct task_struct {
/* 调度实体,调度器的调度对象,该字段用于 CFS */
struct sched_entity se;
/* 该字段用于 RT 调度器 */
struct sched_rt_entity rt;
#ifdef CONFIG_CGROUP_SCHED
struct task_group *sched_task_group;
#endif
/* 该字段用于 DL 调度器 */
struct sched_dl_entity dl;
}Last updated