2003-03-11 10:21:32

by Prasad

[permalink] [raw]
Subject: User Process and a Kernel Thread


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.

--
Failure is not an option


2003-03-12 08:56:33

by Terje Eggestad

[permalink] [raw]
Subject: Re: User Process and a Kernel Thread

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:[email protected]
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
_________________________________________________________________________