Each task belongs to a scheduling class, which determines how a task will be scheduled.
每个任务都属于一个调度类,这决定了任务将如何调度。
set_curr_task: This function is called when a task changes its scheduling class or changes its task group.
set_curr_task:当任务修改其调度类或修改其任务组时,将调用这个函数。
A scheduling class defines a common set of functions (via sched_class) that define the behavior of the scheduler.
调度类定义一个通用函数集(通过sched_class),函数集定义调度器的行为。
The function pick_next_task chooses the next task to execute (depending upon the particular policy of the scheduling class).
函数 pick_next_task选择要执行的下一个任务(取决于调度类的具体策略)。
The currently running task (now preempted) is returned to the red-black tree through a call to put_prev_task (via the scheduling class).
当前运行任务(现在被抢占的任务)通过对put _ prev_task调用(通过调度类)返回到红黑树。
The currently running task (now preempted) is returned to the red-black tree through a call to put_prev_task (via the scheduling class).
当前运行任务(现在被抢占的任务)通过对put _ prev_task调用(通过调度类)返回到红黑树。
应用推荐