How does linux kernel wake idle processor up when new task created?

后端 未结 4 2108
春和景丽
春和景丽 2020-12-18 03:56

I\'m newbie on Linux Kernel. Currently, I looked into idle codes and had a quesition. When processor doesn\'t have any taks in their own runqueue then it may go into idle mo

4条回答
  •  春和景丽
    2020-12-18 04:17

    look at select_task_rq_fair(), which is CFS::select_task_rq() method. This is most representative case where the scheduler wakes up the idle task for re-balancing run-queues.

提交回复
热议问题