Patent ID: 9582312
Date: 2017-02-28
CPC Classifications: G06F

Claim:
1. A method for managing a computer processing environment, comprising: generating an identifier for each function of a process, where each function of the process can create a task to be executed by one of a plurality of threads; executing the process in the computer processing environment; identifying an asynchronous task to be executed, the identified asynchronous task being created by a function that is executing tasks in a first thread; creating a task object associated with the identified asynchronous task; storing, in the task object, context information associated with the identified asynchronous task in the first thread; retrieving, from a call stack of the first thread, context information associated with a task currently executing in the first thread; storing, in the task object, the retrieved context information associated with the task currently executing in the first thread; placing, in a task queue, the identified asynchronous task and the task object; loading, in the call stack of a second thread, execution information associated with the identified asynchronous task; loading, in an identifier block in the call stack of the second thread, the context information stored in the task object, wherein the stored context information includes the context information of the identified asynchronous task and the context information of the task currently executing in the first thread; and executing the identified asynchronous task in the second thread.