Patent ID: 7043725

Claim:
A system for adapting threads support in a virtual machine to an underlying platform of the virtual machine, comprising: threads interface layer (TIL) that provides a standard threads interface for a set of threads associated with an application program of the virtual machine such that the standard threads interface does not depend on the underlying platform; native threads interface layer (NTIL) for adapting the TIL to the underlying platform such that a set of routines in the TIL use a set of routines in the NTIL to support the threads; wherein the NTIL is adapted to an operating system of the underlying platform; wherein the NTIL is adapted to use a set of routines provided by the operating system that perform equivalent functions of functions in the native threads interface layer (NTIL); wherein the routines in the TIL maintain a set of context information for each thread in terms of the virtual machine; and wherein the routines in the NTIL maintain a set of context information for each thread in terms of the underlying platform.