Subj : Re: Can C++ local static objects be made thread safe? To : comp.programming.threads From : David Schwartz Date : Wed Feb 16 2005 04:25 pm "Alexander Terekhov" wrote in message news:42137746.76F2FC1E@web.de... > > David Schwartz wrote: > [...] >> > Calculating the address can be done by reading from a page which >> > appears to have different contents among threads. So it's not more >> > costly than one extra dereference. >> >> That was *MY* point! He's saying you can't do it that way because >> "threads share address space by definition". > > Reread what I said about mappings and implementation details. Read > also POSIX definition of address space. Since we're talking about C/C++ language extensions here, nothing POSIX says is relevant. The language extension certainly contemplates thread implementations vastly different from POSIX, including ones where only one thread can run at a time because the threads are literally swapped in and out of a single execution vehicle. DS .