thread help

Aahz aahz at
Tue Jun 15 17:36:26 CEST 2004

In article <40cea9cb$1 at>,
Scott David Daniels  <Scott.Daniels at Acm.Org> wrote:
>Aahz wrote:
>> Bart Nessux  <bart_nessux at> wrote:
>>>Could someone show me how I can make this work correctly? I want to probe 
>>>64 unique IP address for HTTP servers simultaneously, ...
>> Create a threading.Thread subclass that takes one IP address and a list
>> of ports to scan.  Start 64 instances of this class, each with a
>> different IP address.
>An alternative is to create a que into which you push IP addresses to
>contact, and have each thread read addresses off the queue when they are
>free to process them.  This has the advantage of decoupling the number
>of threads from the number of addresses you want to examine.

Absolutely, but that requires a bit more work for someone who isn't
already familiar with threading.
Aahz (aahz at           <*>

"as long as we like the same operating system, things are cool." --piranha

More information about the Python-list mailing list