On Fri, Jul 07, 2006 at 10:56:08PM -0400, Robert Dewar wrote: > That's not true, thread local storage can be done simply by mapping > hardware on some machines, where you swap maps on a context switch.
Not with the semantics we have for __thread, which asserts that its address is valid in all threads. And, no one has tried this since Irix, wherein it didn't perform well. the effects of tlb flushing at context switch are heavy. r~