Shutdown sequence in a pthreads program

If I have a c++ program with multiple Linux pthreads running simultaneously and I call exit() from one of the threads, what is the sequence of events that will take place?

Specifically I'm interested when/if the other threads will be killed and if so by what mechanism. I'm also wondering if the other threads are killed *before* or *after* the destructors of static objects are executed.

Thank you very much for taking a look at this post.

-Matt
Topic archived. No new replies allowed.