Error monitoring schemes using aliveness record of thread
AssigneeCreateAI, Inc.
InventorsJinshan Xiong, Chaojie Deng
Life of this patent
Estimating the term…
Abstract
Described are devices, systems and methods for monitoring a health status of a thread. A method of monitoring a health status of a thread comprises: invoking a callback for the thread to write a begin record and an end record in an aliveness record that corresponds to the thread, the aliveness record being stored in a memory; detecting an unhealthy status of the thread by reading the aliveness record from the memory; and reporting the unhealthy status of the thread in response to the detecting.
Claims19
A method of monitoring a health status of a thread, comprising:
- invoking a callback for the thread to write a begin record and an end record in an aliveness record that corresponds to the thread, the aliveness record being stored in a memory;
- detecting an unhealthy status of the thread by reading the aliveness record from the memory;
- and
- reporting the unhealthy status of the thread in response to the detecting;
- wherein the method further comprises:
- receiving a test input for the thread,
- wherein the callback is configured to perform a fault injection in response to the receiving of the test input.
A system of monitoring a health status of a thread, comprising:
- a pre-callback register configured to register a pre-callback before an execution of a callback, wherein the pre-callback is configured to write a begin record in an aliveness record of the thread;
- a post-callback register configured to register a post-callback after the execution of the callback, wherein the post-callback is configured to write an end record for the thread;
- a memory storing an aliveness information for the thread that includes a begin timestamp and an end timestamp corresponding to the begin record and the end record, respectively;
- and
- an aliveness record checker configured to read the aliveness record from the memory and detect an unhealthy status of the thread based on the aliveness record;
- wherein the system is further configured to receive a test input for the thread, and the callback is configured to perform a fault injection in response to the receiving of the test input.
A non-transitory computer-readable storage medium having code stored thereon, the code, upon execution by one or more processors, causing the one or more processors to implement a method comprising:
- invoking a callback for a thread to write a begin record and an end record in an aliveness record that corresponds to the thread, the aliveness record being stored in a memory;
- detecting an unhealthy status of the thread by reading the aliveness record from the memory;
- and
- reporting the unhealthy status of the thread in response to the detecting;
- wherein the method further comprises:
- receiving a test input for the thread,
- wherein the callback is configured to perform a fault injection in response to the receiving of the test input.
Dependencies are inferred from the claim text.