Carlos
1/9/2005 4:49:00 PM
["Jason N.Perkins" <jperkins@sneer.org>, 2005-01-09 02.29 CET]
> begin
> consumers.size.times{ buffer.enq(:END_OF_WORK) }
> consumers.each{|th| th.join}
> rescue Exception
> print $!
> end
I think, when the thread that is being "joined" raises timeout error, the
program will finish and the other threads won't be joined. Maybe you should
put the begin...rescue around the join (inside the each).
Hope this helps. Good luck.