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.
用户线程可以直接进入内核而无需调用内核线程吗?我的意思是,用户空间通过异常进入内核,不调用任何内核线程,但在内核代码中运行。谢谢 !
是的他们可以。用户线程一直进入内核进行系统调用、中断和异常。当内核处理其中之一时,它在用户线程的上下文中以内核模式运行(并使用该线程的内核堆栈)。
实际上,“内核线程”被定义为从不退出内核的计划任务。