From mboxrd@z Thu Jan 1 00:00:00 1970 In-Reply-To: <20040227101110.E24932@cackle.proxima.alt.za> References: <20040227101110.E24932@cackle.proxima.alt.za> Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <64FBCAEA-68FD-11D8-B851-000A95B984D8@mightycheese.com> Content-Transfer-Encoding: 7bit Cc: dbailey27@ameritech.net, Linus Torvalds From: Rob Pike Subject: Re: [9fans] Re: Threads: Sewing badges of honor onto a Kernel To: 9fans@cse.psu.edu Date: Fri, 27 Feb 2004 00:17:33 -0800 Topicbox-Message-UUID: fdf4b2c6-eacc-11e9-9e20-41e7f4b1d025 On Feb 27, 2004, at 12:11 AM, Lucio De Re wrote: > Of course, I may be talking out of turn, but I really don't see > how threads can have private space if the stack isn't private. well, perhaps the stack isn't the only place to do it, but it's certainly an easy one, and one that makes the syscall interface to fork easy to implement in a threaded environment: longjmp to the private stack, fork, adjust, longjmp back. -rob