From owner-freebsd-current Thu Sep 18 22:18:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA11909 for current-outgoing; Thu, 18 Sep 1997 22:18:34 -0700 (PDT) Received: from ns.mt.sri.com (SRI-56K-FR.mt.net [206.127.65.42]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA11901; Thu, 18 Sep 1997 22:18:29 -0700 (PDT) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.7/8.8.7) with ESMTP id XAA12941; Thu, 18 Sep 1997 23:18:21 -0600 (MDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id XAA16454; Thu, 18 Sep 1997 23:18:19 -0600 (MDT) Date: Thu, 18 Sep 1997 23:18:19 -0600 (MDT) Message-Id: <199709190518.XAA16454@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "John S. Dyson" Cc: karpen@ocean.campus.luth.se (Mikael Karpberg), dyson@freebsd.org, current@freebsd.org Subject: Re: FYI: regarding our rfork(2) In-Reply-To: <199709190119.UAA00556@dyson.iquest.net> References: <199709190012.CAA11932@ocean.campus.luth.se> <199709190119.UAA00556@dyson.iquest.net> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > We are actually doing a pure memory sharing operation. We will be sharing > everything, plan 9 doesn't appear to share the stack. In order to support > pthreads, (and most thread schemes that I have seen), it is best to allow > full access to all of the thread stacks. Forgive me for being naive, but in all of my experiences with threads (not much, but lots lately with Java), it seems that sharing the stack is asking for nothing but trouble. If you need to share memory, allocate a 'global' shared memory bank that everyone can use, and use it. >From where I stand, sharing thread's stacks buys you nothing but problems worse than the malloc/free problems we're talking about. :( (I've got enough problems with the stupid race conditions with AWT in Java.) Nate