Subj : Re: Main thread going away but worker threads executing? To : comp.programming.threads From : Ian Date : Tue Jul 19 2005 12:43 pm David Schwartz wrote: > "Kev" wrote in message > news:Pine.SOL.4.63.0507181045340.12475@conquest.OCF.Berkeley.EDU... > > >>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.) > > > The C language has no support for threads. But every threading standard > I know of implements fully symettric threads where the "main thread" is in > no way special. > Except on every UNIX/Linux implementation I've used, a return (rather than a call to pthread_exit) from main exits the process. Ian .