Patent ID: 8621470

Claim:
A method comprising: putting a first thread executing on a first processor into a most-recent sleep while a second thread executes on a second processor separate from said first processor; while said first thread is asleep, said second thread awakening said first thread; in response to said awakening, causing thread attributes including, a previous-awakened-thread attribute of said first thread to indicate that said second thread was the thread that was most-recently awakened by said first thread, a previous-waking-thread attribute of said second thread to indicate that said first thread was the thread that was most recently awakened by said second thread; and a processor-assignment attribute of said first thread to indicate whether or not said first thread is to be allocated to said second processor based at least in part on said previous-awakened-thread attribute of said first thread and said previous-waking thread attribute of said second thread; and allocating said first thread to a processor based on its processor-assignment attribute.