Patent ID: 8327374

Claim:
A programmatic method for developing and executing computer code in a multi-threaded computing environment with an API of functions and procedures where multiple threads of execution can access said computer code, said method comprising: defining a programmatic construct (a Worker) to provide an execution context as part of the API of functions and procedures in a first computer code; providing through an application a first thread-specific execution context (a first Worker) as part of API parameters that the application passes when it calls functions and procedures in the first computer code, associated with a first thread of execution (a first thread) to the first computer code when said first thread is to execute said first computer code; executing said first computer code for said first thread of execution in accordance with said first thread-specific execution context, thereby allowing said first computer code to be executed for said first thread in said multi-threaded computing environment without having to effectively lock said first computer code for said first thread in order to prevent a second thread of execution from executing said first computer code while it is being executed by said first thread, wherein the first computer code uses the services and APIs provided by the specific execution context (first Worker) in order to access (read and write) memory variables used by said first computer code for its operation, thereby allowing the first computer code to execute using different memory areas depending on the first Worker that was passed as a parameter in the call.