From owner-freebsd-hackers Sat Aug 12 23: 7:20 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 9550437C0F9 for ; Sat, 12 Aug 2000 23:07:12 -0700 (PDT) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id AAA27098; Sun, 13 Aug 2000 00:06:53 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id AAA26841; Sun, 13 Aug 2000 00:06:16 -0600 (MDT) (envelope-from nate) Date: Sun, 13 Aug 2000 00:06:16 -0600 (MDT) Message-Id: <200008130606.AAA26841@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Wes Peters Cc: Jonas Bulow , Ronald G Minnich , hackers@FreeBSD.ORG Subject: Re: IPC, shared memory, syncronization In-Reply-To: <39962001.35378CFE@softweyr.com> References: <39952437.EFCAA381@servicefactory.se> <39962001.35378CFE@softweyr.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > I don't know about the "bsd" or whatever way. If you're doing real > > > parallel programming and want real performance, you'll use a test-and-set > > > like function that uses the low-level machine instructions for same. > > > > That is exacly what I'm looking for! I found it to be overkill to > > involve the kernel just because I wanted to have a context switch during > > the "test-and-set". > > Precisely how do you expect to "have a context switch" without "involving > the kernel"? If your threads are implemented wholly in userland, you can easily do a context switch w/out involving the kernel. Our current pthreads library does this now, and the JDK's internal (green) threads implementation does it as well. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message