From: ara.t.howard@... Date: 2006-07-06T08:34:04+09:00 Subject: Re: thread mystery On Wed, 5 Jul 2006, Joel VanderWerf wrote: > ara.t.howard@noaa.gov wrote: >> i seem to always end up using to Queue with threads these days anyhow - so >> i >> guess this is fine... > > Yep. Thread w/o Queue for me would be like Car w/o Gas. Or maybe Car w/ > $5/gallon gas. > >> i suppose it makes sense that one shouldn't create threads from inside a >> sync >> block since it uses Thread.critical inside and, therefore, must assume only >> only thread is running at times. i wonder if there is a pattern for safely >> creating threads from within another taking into account >> Thread.critical=true... > > In this case, though, Thread.critical==false while in the notify block, so it > can't be causing this problem, right? yes, it seems so. still, you were definitely on to something - if no threads are created it works... hmm. i'll have to read sync.rb a bit more - it's thick. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama