Patent ID: 8966496
Filing Date: 2015-02-24
Classification: G06F

Abstract:
1. A computer-implemented method comprising: registering a non-preemptive system resource and a first level reclaim handler for the non-preemptive system resource with the kernel of an operating system in a computer system; registering a second level reclaim handler with the kernel, wherein the second level reclaim handler is code that is part of an application program; running the application program as a preemptive thread using the non-preemptive system resource; and dispatching the preemptive thread while the preemptive thread is using the non-preemptive system resource; and in response to the preemptive thread being dispatched while using the non-preemptive system resource, the first handler revising the context of the preemptive thread so that the preemptive thread will resume in the second level handler such that the second handler reclaims back the non-preemptive resource.