Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : Alexander Terekhov Date : Wed Feb 16 2005 04:01 pm David Schwartz wrote: [...] > We are talking about a particular technical definition of "threads", not > the generic one. Specifically, the standard defines a thread as "a flow of > control through a program". It does not require any of the specific > implementation details that normally accompany the term. It specifically > leaves that to the threading standard. Fine. Go read POSIX definitions, then. [...] > Umm, it's totally obvious. For your method, every reference to > thread-specific data (assuming you don't cache the address) requires > figuring out which thread you are to calculate the address. Ever heard of "thread register"? [...] > The problem is, which is normal? If you pass the address, is it normal > for threads to access each other's thread local variables? Of course. Threads share process address space. By definition. regards, alexander. .