Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: Using Threading to speed up DNS Resolution

by Elian (Parson)
on Oct 22, 2004 at 18:31 UTC ( #401625=note: print w/replies, xml ) Need Help??

in reply to Re^2: Using Threading to speed up DNS Resolution
in thread Using Threading to speed up DNS Resolution

No, you misunderstand. It's not that the interface isn't threadsafe. It's that the implementation is single-threaded. That is, no matter how many threads are making name lookup requests, there'll only be one actually in-flight at any one time. Having 50 threads making simultaneous name lookups will get you 1 thread doing a name lookup and 49 threads waiting their turn to issue the name lookup.
  • Comment on Re^3: Using Threading to speed up DNS Resolution

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://401625]
[haukex]: You can put it in SOPW, but use <readmore> tags
[haukex]: Also you might want to label it "code review"
[haukex]: Unless you have specific questions, in which case SSCCE's are much better
[cbeckley]: Excellent, thank you.
[cbeckley]: CUFP is more appropriate for stuff that's finished^h^h^h^h more advanced state of completeness?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2017-03-24 15:08 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (304 votes). Check out past polls.