From owner-freebsd-arch Thu Jan 10 13:14:11 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id E320A37B405 for ; Thu, 10 Jan 2002 13:14:09 -0800 (PST) Received: from gateway.posi.net ([12.236.90.177]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020110211408.SCWS3578.rwcrmhc52.attbi.com@gateway.posi.net>; Thu, 10 Jan 2002 21:14:08 +0000 Received: from localhost (kbyanc@localhost) by gateway.posi.net (8.11.6/8.11.6) with ESMTP id g0ALE5W06879; Thu, 10 Jan 2002 13:14:06 -0800 (PST) (envelope-from kbyanc@posi.net) X-Authentication-Warning: gateway.posi.net: kbyanc owned process doing -bs Date: Thu, 10 Jan 2002 13:14:05 -0800 (PST) From: Kelly Yancey To: Nate Williams Cc: Terry Lambert , Daniel Eischen , Dan Eischen , Peter Wemm , Archie Cobbs , Alfred Perlstein , arch@FreeBSD.ORG Subject: Re: Request for review: getcontext, setcontext, etc In-Reply-To: <15421.64170.308581.606485@caddis.yogotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 10 Jan 2002, Nate Williams wrote: > See above. Even in 5.0, we're going to have some threads being switched > in userland context, while others are switched in the kernel. (KSE is a > hybrid approach that attempts to gain both the effeciency of userland > threads with the ability to parallelize the effeciency gains of multiple > CPU && I/O processing from kernel threads. > > Nate > OK, I'm going to stick my head in and show my ignorance. If {get,set}context have to be implemented as system calls, then doesn't that eliminate much, if not all, the gains assumed by having a separate userland scheduler? I mean if we've got to go to the kernel to switch thread contexts, why not just have the kernel track all of the threads and restore context once, just for the current thread, rather than twice (once for the scheduler and another for the scheduler to switch to the current thread context)? Kelly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message