Patent ID: 6874145

Claim:
A computer program product for managing execution of an application according to an application lifecycle, the computer program product comprising: a computer-readable medium storing computer-readable instructions thereon, the computer-readable instructions including: instructions for starting execution of the application such that the application enters an active state; instructions for pausing the execution of the application such that the application enters the paused state; instructions for terminating the application such that the application enters a destroyed state; and an interface including a set of instructions that enable a process other than the application to initiate execution of the instructions for starting execution of the application, the instructions for pausing the execution of the application, and the instructions for terminating the application, wherein the interface comprises a stub adapted for calling the instructions for terminating the application, the stub being capable of accepting a parameter indicating that termination of the application is unconditional when the parameter is in a first state and conditional when the parameter is in a second state.