Patent ID: 6865738

Claim:
A method for performing independent asynchronous I/O operations within a platform-independent virtual machine, comprising: encountering an I/O operation during execution of a language thread within the platform-independent virtual machine; wherein the I/O operation includes parameters for the I/O operation; and in response to encountering the I/O operation, marshalling the parameters for the I/O operation into a parameter space located outside of an object heap for the platform-independent virtual machine, wherein the marshalling is performed by the language thread, and causing an operating system thread (OS-thread) associated with the language thread to perform the I/O operation, wherein the OS-thread accesses the parameters from the parameter space; whereby the OS-thread does not access the object heap directly while performing the I/O operation wherein the platform-independent virtual machine operates in accordance with a hybrid thread model in which language threads that are not performing I/O operations execute as co-routines on a single OS-thread; and wherein language threads performing I/O operations are associated with dedicated OS-threads that perform the I/O operations.