From owner-freebsd-arch Fri Jan 11 15:44:45 2002 Delivered-To: freebsd-arch@freebsd.org Received: from ajax.cnchost.com (ajax.cnchost.com [207.155.248.31]) by hub.freebsd.org (Postfix) with ESMTP id CD1D637B41A for ; Fri, 11 Jan 2002 15:44:38 -0800 (PST) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by ajax.cnchost.com id SAA20185; Fri, 11 Jan 2002 18:44:13 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <200201112344.SAA20185@ajax.cnchost.com> To: nate@yogotech.com (Nate Williams) Cc: Bakul Shah , Terry Lambert , Dan Eischen , arch@FreeBSD.ORG Subject: Re: Request for review: getcontext, setcontext, etc In-reply-to: Your message of "Fri, 11 Jan 2002 15:56:31 MST." <15423.28063.92751.501022@caddis.yogotech.com> Date: Fri, 11 Jan 2002 15:44:15 -0800 From: Bakul Shah 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message