Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设需要上下文切换时发生定时器中断。总模式切换发生两次是否正确,一次从内核模式到内核模式,一次从内核模式?
进程A收到中断并切换到内核模式,发生上下文切换,进程B在用户模式下执行,所以似乎发生了两次。