? regarding Executing/Spawning Ruby calls in parallel

Hi,

I have “X” number of databases running and I need to send a query
request to the “X” number of servers and I want to do this in
asynchronous fashion. Meaning I want to fire off the query to each
server without any inter-dependencies.

Of course, I need to wait until all the requests to each server is
completed but the idea here is to fire-off the queries to each server
and not worry about any sharing. I tried Ruby threads but it doesn’t
perform well and I think it’s because of green threads.

Any ideas on how I can implement this requirement? I am not too
familiar with fork or pipes but just wondering if there are any such
techniques that I can use to accomplish this.

Thanks,

-Venks