Re: kernal thread and user thread



On Oct 20, 6:02 am, netwalker...@xxxxxxxxx wrote:

I really want to know is there always one kernal thread to map one
user thread, In other words, if user create a thread just like print
"hello world" to command line, is there a kernal thread to map this
thread?

While a thread is actually running, there almost has to be one and
only one kernel thread that it maps to.

By the way, please note carefully that the phrase "kernel thread" here
means a thread that is scheduled by the kernel. This is not the usual
meaning of "kernel thread" which is "a thread that executes in kernel
space".

DS

.



Relevant Pages

  • Re: Lower HD transfer rate with NCQ enabled?
    ... Paa Paa wrote: ... Do I really have lower performance with NCQ or not? ... The overhead gets hidden pretty well when there are multiple requests in flight simultaneously, as tends to be the case when you have a user thread reading data while a kernel thread is asynchronously flushing the user thread's buffered writes. ...
    (Linux-Kernel)
  • kernel thread
    ... When we talk about the term "kernel thread" in linux context, ... different thing like pthread library "kernel thread and user thread", ... we can say that we can create "keventd" using root ...
    (comp.os.linux.development.system)
  • Re: kernel thread
    ... Any command to give me those information? ... > writing kernel code, and even in that case it is usually ... 'kernel thread' and scheduler can't take CPU out of 'kernel thread' unless ...
    (comp.os.linux.development.system)