2009年4月18日 星期六

04/15

OS_Sched() and OSIntExit():
  1. OS_Sched(): 掌管 task 間的 scheduling
  2. OSIntExit(): 掌管 ISR 的 scheduling
下段程式碼, 若剛好進入contextswitch()怎麼辦(如何EI)?
ans:
OS_Sched(){
...
DI;
...
if(){
contextswitch();
}
...
EI;
...
}

A經context switch 到B後, 由B process做EI;

沒有留言:

張貼留言