Invention Grant
- Patent Title: Detecting thread starvation
- Patent Title (中): 检测线程饥饿
-
Application No.: US12028443Application Date: 2008-02-08
-
Publication No.: US08407674B2Publication Date: 2013-03-26
- Inventor: Kirk J. Krauss
- Applicant: Kirk J. Krauss
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Cantor Colburn LLP
- Agent Jeff Tang
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
Thread starvation is indicated for a program under test while the program is running. Beginning with a least frequently used thread in a list of thread tracking structures, if recorded events are currently listed for the thread, thread starvation is detected based on a percentage of the recorded events that took place while other threads were waiting a synchronization object held by the thread. If no recorded events are listed for the thread, the percentage of recorded of events that take place while other threads were waiting for synchronization object held by the thread does not exceed the predetermined percentage, and there are timestamps currently listed for the thread and the thread is currently waiting for a synchronization object, thread starvation is detected based on a percentage of time the thread has been waiting for the synchronization object. Thread starvation detection is repeated for each of the remaining threads in the list of thread tracking structure, beginning with the next to least frequently active thread.
Public/Granted literature
- US20090204948A1 METHOD, APPARATUS, AND COMPUTER PROGRAM PRODUCT FOR DETECTING THREAD STARVATION Public/Granted day:2009-08-13
Information query