Subj : Main thread going away but worker threads executing? To : comp.programming.threads From : Kev Date : Mon Jul 18 2005 11:52 am I've noticed that in a managed environment (such as C#), even if the main thread that spawns worker threads dies, the worker threads themselves continue to execute until they reach completion. Example: Main Thread Start Thread 0 Start Thread 1 Start Thread 2 End Main Thread immediately without waiting on Threads 0,1,2 Does the same thing happen in unmanaged environments such as C and C++? If yes, is there any difference in the basic treatment of threads between unmanaged and managed environments at all? I have been under the impression that this behavior is expected in C# but that the opposite is true in C. (If the main thread dies, everything dies.) Thanks in advance! Kevin .