From: Robert Klemme Date: 2009-10-10T18:35:07+09:00 Subject: Re: Green Threads - I want them to thrash... On 10/09/2009 10:12 PM, Matt Brooks wrote: >> m.synchronize do >> puts ii >> end > > > I appreciate all the help, and it finally worked. i was using 1.8... > > Also, on your 1.9 example, what was the point of the mutex synchronize > here, that would only be necessary if they were sharing common data > correct? Not just for printing right... Thanks a lot for everyone's > time. That was intended to make it a bit more realistic for the case of using shared resources (the output is a shared resource as well). If you have completely independent operations then using different processes is probably a better option as this will make better use of your system's resources (e.g. multiple CPUs). Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/