require \'net/http\' urls = [ {\'link\' => \'http://www.google.com/\'}, {\'link\' => \'http://www.facebook.com/\'}, {\'link\' => \'http://www.yahoo.c
Here is a great article covering the topic.
Generally, viable alternatives to using threads for this would be the use of a Fiber or you could use em-http-request. In the latter example you could leave out the callback handling for your particular purpose.