Re: Garbage collecting live threads
Re: Garbage collecting live threads
- Subject: Re: Garbage collecting live threads
- From: Edward Chan <email@hidden>
- Date: Mon, 14 Sep 2009 15:33:09 -0400
thanks!
On Mon, Sep 14, 2009 at 3:26 PM, Jens Alfke <email@hidden> wrote:
>
> 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