Subj : Re: Main thread going away but worker threads executing? To : comp.programming.threads From : David Schwartz Date : Fri Jul 22 2005 05:06 pm "Duke Robillard" wrote in message news:7-ydncgxcKDBh3zfRVn-tw@io.com... > Of course, main() is being run by a thread, and you might argue > that thread is special because it's the only one running the main > function. Or, you could claim that's not really something special > about the thread itself, just the stack it's using. If you can arrange it so that another thread takes over the same place, say by saving the main thread's context and restoring it in another thread, you'll find that the same thing happens what that other thread returns from main. It's returning from main that's special, it terminates the process, just as it does in a single-threaded program. DS .