Re: Name resolution limits
Re: Name resolution limits
- Subject: Re: Name resolution limits
- From: Jason Linhart <email@hidden>
- Date: Fri, 8 Feb 2002 10:45:29 -0500
On 2/8/02 6:38 AM Stiphane Sudre (email@hidden) wrote:
>
On Friday, February 8, 2002, at 02:35 AM, Josh Graessley wrote:
>
>
> I believe I'm mistaken. There are a few APIs that are thread safe. I
>
> think
>
> gethostinfo and getaddrinfo may be thread safe. This means you could do
>
> multiple lookups if you have multiple threads. It does seem like
>
> overkill to
>
> spawn 10 threads if you need to perform 10 lookups simultaneously, but
>
> with
>
> the public APIs, that's the only way to do it.
>
>
I'm always surprised by the answers on this topic (and every time I'm
>
checking my code for the safety of my mind).
>
>
Name resolution with up to 10 Threads (pool of potential and reusable
>
Threads) using the Cocoa APIs is working fine.
>
>
No performance issue.
Could you provide a pointer to the related documentation? I've been
working on this for over a year and no one has been able to provide a
pointer to something that is both thread safe and doesn't get serialized
internally. The OT routines are thread safe, but they get serialized
internally so that they can use the non-thread safe lower level routines.
I've spoken with the author of the OT routines and he was not aware of
any thread safe approach. Glenn Anderson, <email@hidden>, was
quoting from the source code from the core routine that does the actual
work of the lookups yesterday and said he had confirmed that they are not
thread safe.
Jason
-----------------
email@hidden
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.