Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

End thread

1 view
Skip to first unread message

Sylfelin

unread,
May 16, 2008, 4:34:06 AM5/16/08
to
Hello,

I start a very long process in thread.
When function is ending (very long process is finish), i leave thne
function and thread.

In this case, that becomes the thread ?

It is automatically destroyed and memory released in the next garbage
collector ?

Thank's

--

--------------------------
Merci
Sylfelin


Jon Skeet [C# MVP]

unread,
May 16, 2008, 6:08:49 AM5/16/08
to
On May 16, 9:34 am, Sylfelin <sylfelin_EN_TR...@cegetel.net> wrote:
> I start a very long process in thread.
> When function is ending (very long process is finish), i leave thne
> function and thread.
>
> In this case, that becomes the thread ?
>
> It is automatically destroyed and memory released in the next garbage
> collector ?

If it's a manually created thread, then yes the thread will die when
the task is completed. For a thread-pool thread, the thread will live
on for the next task.

Jon

0 new messages