Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2006 15:53:41 +0530
From:      "Kamal R. Prasad" <kamalp@acm.org>
To:        Pranav Peshwe <pranavpeshwe@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Difference between a kthread and an ordinary process.
Message-ID:  <ac7deb50601240223p3fee9277qbfabc2b5bc90388a@mail.gmail.com>
In-Reply-To: <cdfd7d6d0601240121l3a58bf1cg29b608f178bb1098@mail.gmail.com>
References:  <cdfd7d6d0601240121l3a58bf1cg29b608f178bb1098@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/24/06, Pranav Peshwe <pranavpeshwe@gmail.com> wrote:
[snip]



> What is the difference between a kernel thread and a normal process
> created using fork ? except the address space sharing with swapper and


more than one kernel thread can be associated with a process and they all
share the same address space.

kernel mode execution of the kthread. Is a kthread effectively just a
> process always running in kernel mode ?


you mean - effectively just a kernel process? A kernel thread can be
associated with one or more userland threads, but a kernel process doesn't
have anything associated with it in userspace. Further, more than one kerne=
l
thread can share a single U area/user address space. When they were first
introduced -Sun microsystems referred to kernel threads as light-weight
processes, which is what you seem to have concluded.

regards
-kamal


TIA.
>
> Regards,
> Pranav.
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ac7deb50601240223p3fee9277qbfabc2b5bc90388a>