From: Brent Rowland Date: 2001-02-08T16:04:51+09:00 Subject: [ruby-talk:10551] Re: threads and resolving names > I've got a big list of hostnames, and I need to resolve them to > their IP#. Many times the authoritative nameserver hangs or > never answers, and the program waits ~30 seconds before timing out. > > I thought if I created a bunch of threads that I could get around > the problem and would only hang when all threads (100) are hung. > But that doesn't seem to be the case. Do I have my threading > wrong? Since the operation is blocking the whole process, why not fork? Something like IO.popen("=","w+") as shown on page 121 of the pickaxe book. Brent