Subject: Re: religion
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 12 Sep 2002 04:42:42 -0000
Newsgroups: comp.lang.scheme,comp.lang.lisp
Message-ID: <uo06q2m2mcit08@corp.supernews.com>
Hannah Schroeter <hannah@schlund.de> wrote:
+---------------
| Will Deakin  <anisotropy9@hotmail.com> wrote:
| >I belive that on Solaris/SPARC 7+ most of the process state is shared 
| >with the LWP -- that is address space, stack and so on.
| 
| How do you share the stack if different LWPs are to have different
| threads of execution, i.e. different function call stacks?
+---------------

Seems like one ought to be able to use copy-on-write on the stack segment,
wherein the sharing breaks when a thread extends the stack, while doing
ordinary sharing on the text and data segments (including shared libs).

This *would* have the limitation that one thread would not be able to
access the stack of another thread, so that all interthread communication
would have to be done through the data segment. Is that acceptable?
Your call...


-Rob

-----
Rob Warnock, PP-ASEL-IA		<rpw3@rpw3.org>
627 26th Avenue			<URL:http://www.rpw3.org/>
San Mateo, CA 94403		(650)572-2607