3. 다음은 마이크로 커널의 일부분이다 알고리즘의 의미와 ContextSwitch() 내부 메카니즘을 설명하시오.
void Scheduler(void)
{
tl-pri = current task (RUNNING state)'s priority;
t2-pri = highest priority in the Ready list;
if (tl-pri < t2_pri)
call ContexLSwitch();
else
; /* do nothing */
}
(참고사항 CPU, MEMORY, Task-l, Task-2, ... ,Task-n, stack, TCB(Task ControI Block), Priority, Status, Stack Base Address, CPU registers)