From owner-cvs-lib Sat Mar 7 21:31:05 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA02401 for cvs-lib-outgoing; Sat, 7 Mar 1998 21:31:05 -0800 (PST) (envelope-from owner-cvs-lib) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA02355; Sat, 7 Mar 1998 21:30:42 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id QAA10869; Sun, 8 Mar 1998 16:29:39 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199803080529.QAA10869@cimlogic.com.au> Subject: Re: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_yield.c In-Reply-To: <199803080523.WAA06336@mt.sri.com> from Nate Williams at "Mar 7, 98 10:23:10 pm" To: nate@mt.sri.com (Nate Williams) Date: Sun, 8 Mar 1998 16:29:39 +1100 (EST) Cc: jb@cimlogic.com.au, mike@smith.net.au, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Nate Williams wrote: > > that it will all just come out in the wash. Kernel threads aren't > > light weight, though. > > If kernel threads aren't light-weight, then what differentiates them > from processes? Shared address space. The threads in user-space each have their own stack (once you allocate it when you know you've go a new thread - the kernel doesn't do this for you). All scheduling _currently_ uses the process scheduler, so each thread is actually scheduled as though it is a process, rather than fighting other threads in the same process for the process's time allocation. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137