Invention Grant
US08407674B2 Detecting thread starvation 失效
检测线程饥饿

Detecting thread starvation
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.
Information query
Patent Agency Ranking
0/0