Re: User Process and a Kernel Thread

Terje Eggestad (terje.eggestad@scali.com)
12 Mar 2003 10:06:31 +0100


You should have very good reasons for making a kernel thread.
As in "it can't be done in userspace".

When running a kernel thread you have "process" that is
a) using the kernel memory, not it own private
b) the CPU is in privilege mode, not user mode
c) libc don't exist

If you don't understand the difference between kernel mode and user
mode, your question suggest you don't, read chapter two in
http://www.xml.com/ldd/chapter/bookindexpdf.html
and please keep of lkml, and direct you questions to the kernelnewbie
list : http://www.kernelnewbies.org/

Terje

On Tue, 2003-03-11 at 11:32, Prasad wrote:
> Hi all,
> Whats the difference between the user process and a kernel thread?
> IS it possible to make the kernel thread a user process? if yes, how do we
> do that?
>
> Prasad.

-- 
_________________________________________________________________________

Terje Eggestad mailto:terje.eggestad@scali.no Scali Scalable Linux Systems http://www.scali.com

Olaf Helsets Vei 6 tel: +47 22 62 89 61 (OFFICE) P.O.Box 150, Oppsal +47 975 31 574 (MOBILE) N-0619 Oslo fax: +47 22 62 89 51 NORWAY _________________________________________________________________________

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/