From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 24 10:23:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0EEF16A41F for ; Tue, 24 Jan 2006 10:23:44 +0000 (GMT) (envelope-from kamalpr@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F4A943D5A for ; Tue, 24 Jan 2006 10:23:43 +0000 (GMT) (envelope-from kamalpr@gmail.com) Received: by uproxy.gmail.com with SMTP id j3so191396ugf for ; Tue, 24 Jan 2006 02:23:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=XdBjAiLBUABUarvYTSgzUYfa4L+cXOaRh/J9yjoa8iyYCwzRgqeJW1x4X8+uXndNioj4erAZZnsOEac7u/RDRgtIqW1jdTVbKeuohkp+v4Y23zdtRtL6SkwoPYf24TzcfpdWtKyvYVHR/NkUslxr4AJu9LrNAavoQukPHmEJJrs= Received: by 10.48.225.3 with SMTP id x3mr422343nfg; Tue, 24 Jan 2006 02:23:41 -0800 (PST) Received: by 10.49.14.17 with HTTP; Tue, 24 Jan 2006 02:23:41 -0800 (PST) Message-ID: Date: Tue, 24 Jan 2006 15:53:41 +0530 From: "Kamal R. Prasad" Sender: kamalpr@gmail.com To: Pranav Peshwe In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Difference between a kthread and an ordinary process. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2006 10:23:45 -0000 On 1/24/06, Pranav Peshwe 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= " >