Subj : Re: localtime in Solaris 9 is not thread safe? To : comp.programming.threads From : Thomas Mueller Date : Tue Mar 08 2005 11:40 am On Tue, 08 Mar 2005 13:36:26 +0800, Franklin Li wrote: > > I'm doing pthread(C++) programming in Solaris 9 and find that localtime is > not thread safe. Is it true? > > [...pstack dump snipped...] > > Is there solution for this? > Since localtime() is not reentrant it may well be that it is not thread-safe. Try using localtime_r() instead. -- Thomas Mueller .