Hi Eljay Are you using the NPTL?and what's your NPTL(glibc) version and gcc version? best, Guanjun 在 2009-02-17二的 04:37 -0800,John (Eljay) Love-Jensen写道: > Hi Guanjun, > > I compiled and ran your code on my machine. > > No unknown exception. > > Here's the output: > > # g++ test.cpp > # ./a.out > This is a pthread. > This is a pthread. > ********************This is the main thread. > This is a pthread. > ********************This is the main thread. > This is a pthread. > This is a pthread. > This is a pthread. > This is a pthread. > This is a pthread. > > SIncerely, > --Eljay