Re: Garbage collecting live threads
Re: Garbage collecting live threads
- Subject: Re: Garbage collecting live threads
- From: Jens Alfke <email@hidden>
- Date: Mon, 14 Sep 2009 12:26:03 -0700
On Sep 14, 2009, at 11:54 AM, Edward Chan wrote:
Would mythread be considered garbage and be collected even though it
hasn't
finished running? If so, would it be cancelled first? Or would it
just get
killed?
Threads aren't garbage collected; they're implemented at a lower
level. (Or you can think of it as that the thread scheduler always has
a reference to all live threads.) They'll remain in existence until
they exit or are explicitly killed.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden