Process Scheduling from Processor point of view
问题 I understand that the scheduling is done by the kernel. Let us suppose a process (P1) in Linux is currently executing on the processor. Since the current process doesn't know anything about the time slice and the kernel is currently not executing on the processor, how does the kernel schedule the next process to execute? Is there some kind of interrupt to tell the processor to switch to execute the kernel or any other mechanism for the purpose? 回答1: In brief, it is an interrupt which gives