Patent ID: 8607248
Filing Date: 2013-12-10
Classification: G06F

Abstract:
1. A machine-implemented method comprising: in response to a request for exiting from an operating environment of a data processing system, an operating system examining an operating state associated with an application running within the operating environment, the operating state being stored at a predetermined memory location shared between the operating system and the application, wherein the operating state is written to and updated in the predetermined memory location by the application; wherein when the application enters a critical section, the application updates, via an application programming interface (API), the operating state stored at the predetermined memory location to indicate that the application is unsafe for sudden termination, and wherein when the application exits from the critical section, the application updates, via the API, the operating state stored at the predetermined memory location to indicate that the application is safe for sudden termination; the operating system immediately terminating the application if the operating state associated with the application indicates that the application is safe for a sudden termination; and the operating system deferring terminating the application if the operating state associated with the application indicates that the application is unsafe for the sudden termination.