From owner-freebsd-arch Tue Nov 2 5:23: 4 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 2C751153C9 for ; Tue, 2 Nov 1999 05:22:52 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id OAA19342 for ; Tue, 2 Nov 1999 14:22:49 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id OAA79835 for freebsd-arch@freebsd.org; Tue, 2 Nov 1999 14:22:49 +0100 (MET) Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id C7682153C9 for ; Tue, 2 Nov 1999 05:22:22 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from vigrid.com (pm3-pt85.pcnet.net [206.105.29.159]) by pcnet1.pcnet.com (8.8.7/PCNet) with ESMTP id IAA14739; Tue, 2 Nov 1999 08:21:01 -0500 (EST) Message-ID: <381EE576.7C1AF9EE@vigrid.com> Date: Tue, 02 Nov 1999 08:21:58 -0500 From: "Daniel M. Eischen" X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Michael Schuster - TSC SunOS Germany Cc: freebsd-arch@freebsd.org Subject: Re: Threads models and FreeBSD. (Next Step) References: <25676.941546688@critter.freebsd.dk> <381EE210.3997A52F@germany.sun.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael Schuster - TSC SunOS Germany wrote: > In the sense that I've seen LWP used up to now (i.e. the Solaris sense, > which I suggest we'll adhere to), an LWP is - figuratively speaking - > the mapping between one or more user threads to _one_ kernel thread, > i.e. a single scheduling entitity from the kernel's perspective, but not > necessarily a single thread in the user's application's view. Every > process has at least one LWP (and each LWP is associated with exactly > one process). According to this definition, LWPs do have their own time > quantum (since the kernel sees kthread quanta). Yes. And I'm sure you're familiar with the various scheduling classes and the dispatch table (which shows the quantums) under Solaris. Note that if we want to support PTHREAD_SCOPE_SYSTEM, lighweight processes need to be able to contend for resources among all other threads in the system within the same scheduling domain. This, to me, implies their own quantum. And we can see that this is true for Solaris. > I think you could loosely compare LWPs to "scheduler activations" in the > Anderson paper (at least that's my understanding up to now). Agreed. Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message