- 論壇徽章:
- 0
|
本帖最后由 rockcanon 于 2014-01-28 17:34 編輯
schedule()要做很多事情:
• checking for exceptions: Section 7.3.1;
• removing caller from runqueue, if necessary: Section 7.3.2;
• selecting next process to run: Section 7.3.3;
• recording scheduling decision: Section 7.3.4;
• context switching: Section 7.3.5.
想問(wèn)的是,這個(gè)函數(shù)做這么多的事情,是一直做完不會(huì)被中斷,還是這個(gè)過(guò)程可能會(huì)被中斷?
還有,是不是注定schedule()只能執(zhí)行到switch_to()就拐彎了? 如果這樣,那__schedule_tail()什么情況下才能執(zhí)行呢?
(2.6是context_switch(), 和 finish_task_switch()) |
|