From: Robert Klemme Date: 2009-09-07T17:28:30+09:00 Subject: Re: Executing system commands in threads under Ruby 1.8.6 2009/9/7 vhaerun vh : > I tried to write a script that makes use of external binaries. Each > external binary is called from a different thread, but, under 1.8.6, > this doesn't seem to work. Everything is executing in a sequential-like > manner. > The guys from StackOverflow said this was because of Ruby's thread > implementation ( and when I tried the same code under JRuby, it worked > ). > > Is there some way to make my script work under 1.8.6, or is upgrading to > 1.9 the only solution? I don't think that is necessary. Can you provide a example of the phenomenon you describe? Normally, external programs are separate processes and work independently. It may be though that if you do the IO handling for external processes not properly that it looks like they are executed sequentially because they are blocked in IO operations. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/