Systems and methods are provided for accessing thread private data in a
computer. In one embodiment, a method is provided for accessing thread
private data in a computer for a program executed by using a plurality of
threads, wherein each of the plurality of threads may be associated with
a different area of its respective stack for storage of thread private
data. Further, the stacks of threads may cover a coherent address space
in a memory of the computer, starting at a base address. The method may
include determining a thread identifier of the one of the plurality of
threads based on the base address and a stack pointer of one of the
plurality of threads. In addition, the method may include accessing
thread private data of one of the stacks based on the determined thread
identifier.