From owner-cvs-lib Sat Mar 7 21:38:20 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA03625 for cvs-lib-outgoing; Sat, 7 Mar 1998 21:38:20 -0800 (PST) (envelope-from owner-cvs-lib) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA03606; Sat, 7 Mar 1998 21:38:12 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id VAA08550; Sat, 7 Mar 1998 21:35:04 -0800 (PST) Message-Id: <199803080535.VAA08550@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: John Birrell cc: nate@mt.sri.com (Nate Williams), mike@smith.net.au, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_yield.c In-reply-to: Your message of "Sun, 08 Mar 1998 16:29:39 +1100." <199803080529.QAA10869@cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Mar 1998 21:35:03 -0800 From: Mike Smith 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. So what differentiates these "heavyweight" threads from "lightweight" threads? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com