Re: NSURL and thread proliferation
Re: NSURL and thread proliferation
- Subject: Re: NSURL and thread proliferation
- From: Brian Bergstrand <email@hidden>
- Date: Sat, 5 Jun 2004 19:45:25 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Threads are also "cached" after they exit so they don't have to go
through setup if another is asked for. So that could explain why you
are seeing extra threads that should have exited.
HTH.
On Jun 4, 2004, at 9:10 PM, Wade Tregaskis wrote:
>
> I just noticed that my single threaded app suddenly becomes a 5
>
> thread app when I call NSString's stringWithContentsOfURL: method. It
>
> looks like the additional threads are due to the machinations of
>
> NSURL and stuff, but what mystifies me is why most of the new threads
>
> hang around even after all the work is done.
>
>
One thread is often for the audio HAL - even though that's not really
>
in AppKit, I guess NSSound spawns it. You'll often find one thread is
>
some sort of asynchronous event manager, which just sits in it's
>
runloop and does nothing in particular that I've noticed. Then of
>
course there's various threads for the actual socket stuff - two if I
>
remember rightly.
>
>
So there's your extra 4, although it probably varies a bit.
>
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
I don't make jokes. I just watch the government and report the facts. -
Will Rogers
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQMJbGnnR2Fu2x7aiEQIwLQCgouDYowML5VbK3ykwKvSNoUlJ4DkAn3m2
80Uf3OexVB7F5qa8EpmzN6Yj
=J/6X
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.