What is the difference between kernel threads and user threads?

后端 未结 4 1603
长发绾君心
长发绾君心 2021-02-01 10:38

What is the difference between kernel threads and user threads? Is it that kernel thread are scheduled and executed in kernel mode? What are techniques used for creating kernel

4条回答
  •  攒了一身酷
    2021-02-01 10:53

    Essentially user threads run in the context of a user with the appropriate privilege levels e.g. user threads most certainly won't have access to kernel-level memory/data structures/routines etc. Whereas Kernel threads run in the context of the OS kernel thus giving them privileges to execute code which has access to low level kernel routines/memory/data structures.

提交回复
热议问题