Re: Gather/Take and threads

2006-12-13 Thread Larry Wall
On Wed, Dec 06, 2006 at 07:44:39PM -0500, Joe Gottman wrote: : Suppose I have a gather block that spawns several threads, each of which : calls take several times. Obviously, the relative order of items returned : from take in different threads is indeterminate, but is it at least : guaranteed

Re: Gather/Take and threads

2006-12-13 Thread Larry Wall
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... Larry

Re: Gather/Take and threads

2006-12-13 Thread Larry Wall
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

Gather/Take and threads

2006-12-06 Thread Joe Gottman
Suppose I have a gather block that spawns several threads, each of which calls take several times. Obviously, the relative order of items returned from take in different threads is indeterminate, but is it at least guaranteed that no object returned from take is lost? Joe Gottman