Patent ID: 7831980
Filing Date: 2010-11-09
Classification: G06F

Abstract:
1. A method for scheduling threads in a computer having one or more processors, the method comprising: establishing an interrupt threshold for a thread, the interrupt threshold comprising a maximum permissible number of interrupts during execution of the thread on a processor of the one or more processors; executing the thread on a current processor, the thread having thread affinity for at least one processor of the one or more processors, the at least one processor including the current processor; counting a number of interrupts during execution of the thread on the current processor; establishing a maximum count duration for the thread; measuring elapsed count time for the thread during execution of the thread on the current processor; and removing, by a dispatcher, the thread affinity for the current processor in dependence upon the counted number of interrupts and the interrupt threshold, wherein removing the thread affinity for the current processor prevents execution of the thread on the current processor and further comprises: