static inline int rt_policy(int policy)
static inline int task_has_rt_policy(struct task_struct *p)
□ cpus_allowed is a bit field used on multiprocessor systems to restrict the CPUs on which a pro-
□ run_list and time_slice are required for the round-robin real-time scheduler, but not for the completely fair scheduler. run_list is a list head used to hold the process on a run list, while time_slice specifies the remaining time quantum during which the process may use the CPU.
The tif_need_resched flag discussed above is just as important for the scheduler as the specific scheduler elements held in the task structure. If this flag is set for an active process, the scheduler knows that the CPU is to be withdrawn from the process — either voluntarily or by force — and granted to a new process.
Continue reading here: Scheduler Classes
Was this article helpful?