Unreferenced Thread object dispose

Posted by Benny on Stack Overflow See other posts from Stack Overflow or by Benny
Published on 2010-03-11T05:08:41Z Indexed on 2010/03/11 5:13 UTC
Read the original article Hit count: 347

Filed under:
|
|

If i use thread like this:

void foo()
{
new Thread().Start();
}

since the Thread object is not referenced, will it be disposed by GC before the designated work is done?

© Stack Overflow or respective owner

Related posts about threading

Related posts about dispose