Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : David Schwartz Date : Thu Feb 17 2005 08:11 pm "Alexander Terekhov" wrote in message news:421490EC.6343E867@web.de... > David Schwartz wrote: > [...] >> Since we're talking about C/C++ language extensions here, > Go read the standards. In C++, for example, apart from empty base > objects, all objects are guaranteed to have distinct addresses; > even zero length objects. Except it's not clear whether thread-specific data means one object per thread or a single object that has the property of being different based on which thread looks at it. Neither the C nor the C++ standards make this clear. > And sharing is fundamental property of > threads. That's what makes them threads, not processes. No, what makes them threads is that they're execution vehicles. Read the standard. It does not specify what threading model is used because it's intended to support both POSIX-like and unPOSIX-like threading models. DS .