Patent ID: 8612986

Claim:
A computer program product for scheduling threads in a multiprocessor computer, the computer program product comprising: a non-transitory recording medium having computer program instructions encoded therein, the computer program instructions configured to, select a thread in a ready queue to be dispatched to a processor; determine whether an interrupt mask flag is set in a thread control block associated with the thread, if the interrupt mask flag is set, determine whether a count of the number of processors in the multiprocessor computer having a current processor priority register set to least favored is less than a threshold value; if the count is less than the threshold value, select a processor, from a plurality of processors included in the multiprocessor computer, that has a current processor priority register that is not set to least favored, wherein the current processor priority register of the processor indicates priority of the processor for interrupt processing; Set the current processor priority register of the selected processor to least favored for interrupt processing; and dispatch the thread from the ready queue to the selected processor.