From: Martin DeMello Date: 2004-06-08T20:23:39+09:00 Subject: Re: Waiting for condor output files Milo Thurston wrote: > Martin DeMello wrote: > > You might be better off with a thread per loop, then, which fills an > > entry into a global array or hash when its particular job finishes. That > > way, if you want you can start processing files as they come in, and not > > block on waiting for the next in sequence to get done. > > That's not something I've encountered yet. > Are there any on-line examples I could take a look at, to see > how it works? Check out http://www.rubycentral.com/book/tut_threads.html - Ruby's threading mechanism is amazingly lightweight. martin