Can a user thread directly enter kernel w/o a kernel thread being called ? I mean, a user space enter kernel via an exception, w/o calling any kernel thread, but run in kernel code. Thanks !
Yes, they can. User threads enter the kernel all the time for system calls, interrupts and exceptions. While the kernel is handling one of these it is running in kernel mode in the context of the user thread (and uses that thread's kernel stack).
In fact, a "kernel thread" is defined as a scheduled task that never exits the kernel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With