Re: Gather/Take and threads
by Larry Wall other posts by this author
Dec 13 2006 11:09AM messages near this date
Re: Gather/Take and threads
|
supertyping
On Wed, Dec 13, 2006 at 11:01:10AM -0800, Larry Wall wrote:
: Of course, it's also possible that the flipside is true--that
: gather/take is just another normal way to set up interthread queueing,
: if the thread is spawned in the dynamic scope of the gather.
: Under that view all the subthreads share the outer dynamic scope.
: Maybe that's saner...
And a subdivision of that view is whether subthreads are naturally
collected at the end of the dynamic scope that spawned them, or
whether they are considered independent unless some dynamic scope
"claims" them all for collection. In that case a gather would one
way (the normal way?) to require termination of all subthreads before
terminating its lazy list.
Larry
Thread:
Larry Wall
Larry Wall
Larry Wall
|