I am just started coding of device driver and new to threading, went through many documents for getting an idea about threads. I still have some doubts.
- what is a kernel thread?
- how it differs from user thread?
- what is the relationship between the two threads?
- how can i implement kernel threads?
- where can i see the output of the implementation?
Can anyone help me?
Thanks.
A kernel thread is a kernel task running only in kernel mode; it usually has not been created by
fork()orclone()system calls. An example iskworkerorkswapd.You probably should not implement kernel threads if you don’t know what they are.
Google gives many pages about kernel threads, e.g. Frey’s page.