I have the following code:
new Thread(new ThreadStart(delegate()
{
// something short
})).Start();
Can garbage collector finalize this instance of Thread while it is in the Stopped state?
Lifetime of this thread is:
Before StartedRunningStopped
When this Thread will end of their work this will be collected by Garbage Collector or they will keep handle to that thread for maybe restart them in future.
A
Threadinstance are not referenced by the system after the thread terminates.It is not possible to restart a stopped
Threadinstance.