Patent ID: 8185895

Claim:
A computer system, comprising: a processor configured to execute a plurality of threads in a user mode and operate in a protected kernel mode, each thread configured to execute a same code; a user memory coupled to the processor; a kernel memory, coupled to the processor, for providing a kernel mode stack, a kernel mode register, and a kernel mode memory; first program code executing in the processor for providing a first kernel thread context structure in the kernel memory and for maintaining a first pointer memory within the first kernel thread context structure for a first thread; and second program code executing in the processor for providing a second kernel thread context structure in the kernel memory and for maintaining a second pointer memory within the second kernel thread context structure for a second thread, wherein: the first kernel thread context structure is configured to store a first address value, the first address value stored in the first kernel thread context structure in the kernel memory and associated with a first location in the user memory specific to the first thread for the same code to form a first application thread specific structure for the first thread, the first pointer memory enables the first thread to retrieve the first address value, the second kernel thread context structure is configured to store a second address value, the second address value stored in the second kernel thread context structure in the kernel memory and associated with a second location in the user memory specific to the second thread for the same code to form a second application thread specific structure for the second thread, the second pointer memory enables the second thread to retrieve the second address value, and the first address value and the second address value are set by the user mode.