GENERATE DIAGNOSTIC DATA FOR OVERDUE THREAD IN A DATA PROCESSING SYSTEM
First Claim
1. A computer implemented method to generate diagnostic data for a thread, the method comprising:
- allocating a first thread to a monitoring function;
determining if a second thread is running, wherein the second thread is associated with an operation;
obtaining an object pointer from a list of running threads, wherein the object pointer references a time data structure associated with the second thread, the time data structure comprising a maximum running time interval and a check time;
calculating the check time as a maximum running time interval added to an initially sampled timestamp;
determining if a current time exceeds the check time; and
responsive to a determination that the current time exceeds the check time, generating an error log.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a computer implemented method, computer program product, and apparatus for generating diagnostic data for a thread. A service processor may begin by executing the computer usable program code to allocate a first thread to a monitoring function. The service processor determines if a second thread is running, wherein the second thread is associated with an operation. The service processor obtains an object pointer from a list of running threads, wherein the object pointer references a time data structure associated with the second thread, the time data structure comprising a maximum running time interval and a check time. The service processor calculates the check time as a maximum running time interval added to an initially sampled timestamp. The service processor determines if a current time exceeds the check time. In addition, the service processor generates an error log, responsive to a determination that the current time exceeds the check time.
31 Citations
20 Claims
-
1. A computer implemented method to generate diagnostic data for a thread, the method comprising:
-
allocating a first thread to a monitoring function; determining if a second thread is running, wherein the second thread is associated with an operation; obtaining an object pointer from a list of running threads, wherein the object pointer references a time data structure associated with the second thread, the time data structure comprising a maximum running time interval and a check time; calculating the check time as a maximum running time interval added to an initially sampled timestamp; determining if a current time exceeds the check time; and responsive to a determination that the current time exceeds the check time, generating an error log. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product for generating diagnostic data for a thread, the computer program product comprising:
- a computer usable medium having computer usable program code embodied therewith, the computer program product comprising;
computer usable program code configured to allocate a first thread to a monitoring function; computer usable program code configured to determine if a second thread is running, wherein the second thread is associated with an operation; computer usable program code configured to obtain an object pointer from a list of running threads, wherein the object pointer references a time data structure associated with the second thread, the time data structure comprising a maximum running time interval and a check time; computer usable program code configured to calculate the check time as a maximum running time interval added to an initially sampled timestamp; computer usable program code configured to determine if a current time exceeds the check time; and computer usable program code configured to generate an error log, responsive to a determination that the current time exceeds the check time. - View Dependent Claims (9, 10, 11, 12, 13, 14)
- a computer usable medium having computer usable program code embodied therewith, the computer program product comprising;
-
15. A data processing system comprising:
-
a bus; a storage device connected to the bus, wherein computer usable code is located in the storage device; a communication unit connected to the bus; and a processing unit connected to the bus, wherein the processing unit executes the computer usable code for generating diagnostic data for a thread, wherein the processing unit executes the computer usable program code to allocate a first thread to a monitoring function;
determine if a second thread is running, wherein the second thread is associated with an operation;
obtain an object pointer from a list of running threads, wherein the object pointer references a time data structure associated with the second thread, the time data structure comprising a maximum running time interval and a check time;
calculate the check time as a maximum running time interval added to an initially sampled timestamp;
determine if a current time exceeds the check time; and
generate an error log, responsive to a determination that the current time exceeds the check time. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification