From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 4 Jun 2004 11:53:57 -0400 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] stack reclamation on Unix using clone, rfork_thread, etc. In-Reply-To: <200406041533.i54FXNm29967@plg2.math.uwaterloo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200406041533.i54FXNm29967@plg2.math.uwaterloo.ca> Topicbox-Message-UUID: 951639e0-eacd-11e9-9e20-41e7f4b1d025 > As far as I know, the new pthreads library on Linux uses a technique > very similar to the one that Russ describes, with the additional > optimization of re-using stacks if possible. In fact, I'm not sure if > they ever free stacks -- just keep them around in case a new thread > needs one. That's exactly what I'm doing. What a crock. Russ