delete
-
delete
-
delete
Put each IP Search onto a separate thread. Whatever you sdo though the network response time is likely to be the limiting factor.
-
Put each IP Search onto a separate thread. Whatever you sdo though the network response time is likely to be the limiting factor.
IMO bad advice. Using a few threads will help, launching tens or hundreds will result in hitting a bottleneck or a deliberate limitation inside the TCP/IP stack. :)
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
-
Put each IP Search onto a separate thread. Whatever you sdo though the network response time is likely to be the limiting factor.
This is really bad advice. Did you know that your allocating 1MB of RAM PER THREAD you create and keep running? I'd look at using the managed thread pool before I start launching threads by the hundreds.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
This is really bad advice. Did you know that your allocating 1MB of RAM PER THREAD you create and keep running? I'd look at using the managed thread pool before I start launching threads by the hundreds.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...how would you change the code that it scan it fast or what would you add everybody said an other solution!
-
how would you change the code that it scan it fast or what would you add everybody said an other solution!
I'd design it so that I'd have about 5 or 10 or so threads all pulling IP addresses from a queue. Each of these workers would get an IP address, do it's job, report back, and then go get another address. You do NOT create a new thread for each IP address.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...