Patent ID: 7386702
Filing Date: 2008-06-10
Classification: G06F

Abstract:
1. A method of accessing thread private data in a computer for a program to be executed by using a plurality of threads, comprising: implementing a plurality of numerical stack pointers in a processor of the computer, the stack pointers each pointing to a respective one of the plurality of threads executing in the processor; associating each one of the plurality of threads with a different data area of a respective stack for storage of thread private data, wherein stacks of the plurality of threads cover a coherent address space in a memory of the computer starting at a numerical base address, and the plurality of stack pointers each have a respective calculable numerical relationship with the associated data areas through the use of a respective numerical thread identifier; determining the respective thread identifier of one of the plurality of threads using a module in the processor, wherein the module calculates the thread identifier using the base address of the respective stack for storage and the respective stack pointer of the one of the plurality of threads; and accessing thread private data of one of the stacks using the determined thread identifier.