Issue
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.
Solution
A kernel thread is a kernel task running only in kernel mode; it usually has not been created by fork()
or clone()
system calls. An example is kworker
or kswapd
.
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.
Answered By - Basile Starynkevitch Answer Checked By - Marilyn (WPSolving Volunteer)