From: Gary Wright Date: 2007-02-22T04:33:15+09:00 Subject: Re: threads within a thread On Feb 21, 2007, at 2:19 PM, Jason Roelofs wrote: > Since you're writing this in Ruby, I have to suggest that you just > write > this single-threaded. Ruby uses green threads, meaning it handles > it's own > threading and not the system, leading to on average decreased > execution time > vs single-threaded. If you were talking about CPU bound jobs that might be true, but probing networks has lots of inherent I/O latency. Green threads should be just fine for this sort of thing as you are basically waiting on various packets to return from the probed hosts. Gary Wright