Patent ID: 8832698

Claim:
A method for managing multi-threading processes of an application framework module, the method comprising: initiating execution of an application framework module of a single application; receiving a plurality of requests for interaction with the application framework module; for each request in the application framework module of the single application, instantiating a thread including a plurality of state data structures, wherein the thread persists during execution of the application framework module and the state data structures store a thread state and library data and user data, wherein the thread state, library data, and user data collectively define an operating context that is specific to the thread, and the operating context of the thread is local to the application in scope; associating a plurality of events with the thread, placing the thread in a wait state; receiving a plurality of user-generated events by the application framework module; associating each of the plurality of user-generated events with one of the threads; modifying each thread associated with one of the user generated events to execute a function corresponding to the user-generated event associated therewith and placing the thread in a non-wait state; and processing all threads in the non-wait state according to a multi-tasking protocol, wherein processing one of the threads includes accessing one or more of libraries and static variables of global scope, wherein each of the threads is in the wait state or in the non-wait state and wherein the thread state, the library data, and the user data is maintained in a memory for each of the threads in the wait state wherein a thread manager associated with an operating system manages concurrent execution of the threads while the threads are associated only with the single application and operate in the context of the single application.