From owner-freebsd-arch Mon Nov 1 13:36:22 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 1F2D814E4A for ; Mon, 1 Nov 1999 13:36:04 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id WAA08392 for ; Mon, 1 Nov 1999 22:35:57 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id WAA75701 for freebsd-arch@freebsd.org; Mon, 1 Nov 1999 22:35:57 +0100 (MET) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id AB9C914E36 for ; Mon, 1 Nov 1999 13:35:26 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.3/8.9.1) id IAA66409; Tue, 2 Nov 1999 08:44:49 +1100 (EST) (envelope-from jb) Date: Tue, 2 Nov 1999 08:44:49 +1100 From: John Birrell To: Peter Dufault Cc: Julian Elischer , freebsd-arch@freebsd.org Subject: Re: Threads goals version III Message-ID: <19991102084448.A66172@freebsd1.cimlogic.com.au> References: <199911011233.HAA17742@hda.hda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <199911011233.HAA17742@hda.hda.com>; from Peter Dufault on Mon, Nov 01, 1999 at 07:33:52AM -0500 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Nov 01, 1999 at 07:33:52AM -0500, Peter Dufault wrote: > > 4/ All threads in a processs see the same address space (exactly). > > Stacks too? Is that a rule implied from POSIX or one for portability? I think so. There is nothing to stop a thread from passing a pointer to something on it's stack to another thread, assuming that it will ensure that the stack will remain valid. This is common practice where one thread parents one or more child threads and wishes to share information with them. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ john.birrell@cai.com john.birrell@opendirectory.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message