Linux内核进程调度机制详解(3)

if (!prev->mm) {
               prev->active_mm = NULL;
               mmdrop(oldmm);
        }
}

/*切换到后进程,调度过程结束*/
switch_to(prev, next, prev);
__schedule_tail(prev);

same_process:
reacquire_kernel_lock(current);
if (current->need_resched)
        goto need_resched_back;
return;
}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/22790.html