From owner-freebsd-arch Fri Jan 11 15:46:17 2002 Delivered-To: freebsd-arch@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 5A4D937B41E for ; Fri, 11 Jan 2002 15:46:11 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id QAA07215; Fri, 11 Jan 2002 16:45:53 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g0BNjrX14578; Fri, 11 Jan 2002 16:45:53 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15423.31024.859659.324334@caddis.yogotech.com> Date: Fri, 11 Jan 2002 16:45:52 -0700 To: Bakul Shah Cc: nate@yogotech.com (Nate Williams), Terry Lambert , Dan Eischen , arch@FreeBSD.ORG Subject: Re: Request for review: getcontext, setcontext, etc In-Reply-To: <200201112344.SAA20185@ajax.cnchost.com> References: <15423.28063.92751.501022@caddis.yogotech.com> <200201112344.SAA20185@ajax.cnchost.com> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) 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 > > > I have a simulation thread library which allows a thread > > > context switch with 12 or so instructions on a x86. > > > Does it do a full context switch, or a partial context switch? :) > > Good enough! Since this is simulation, all context switches > are cooperative which simplifies things considerably. > > > It's not any more/less relevant now. It's just that it was mostly > > misunderstood in the past, and since we're trying to make get/setcontext > > library calls, we want to make sure to get it right. According to > > Bruce, it may not work as we expected in the past. > > Got you. Thanks! There are other OSes on the x86 that > provide threads (solaris, windows...). I wonder how they > handle this. Good question. I was hoping Bruce would clarify, but he's bowed out of the dicussion... Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message