Patent ID: 9710313
Date: 2017-07-18
CPC Classifications: G06F

Claim:
1. A method of ensuring integrity of critical data stored in a shared memory, the method comprising: executing a restartable processing thread; continuously monitoring, by a broker thread, the restartable processing thread and determining whether the restartable thread is manipulating the critical data; storing a pre-operation hook and a post-operation hook in a portion of memory included in a semaphore, wherein the broker thread executes the pre-operation hook which sets a semaphore indicator to a first state, indicating a restartable processing thread is manipulating the critical data or executes the post-operation hook which sets the semaphore indicator to a second state, indicating that the restartable processing thread is not manipulating the critical data; setting the semaphore indicator to either the first state or the second state based on whether the restartable thread is manipulating the critical data; receiving, by the broker thread, a restart request during the execution of the restartable processing thread; automatically determining whether the broker thread has executed the pre-operation hook or the post-operation hook by checking the semaphore indicator; in response to the restart request, restarting the restartable processing thread when the semaphore is in the second state and denying the restart request when the semaphore is in the first state.