Patent ID: 8407708
Filing Date: 2013-03-26
Classification: G06F

Abstract:
1. A method of controlling a thread on a computerized system having multiple processors, the method comprising: accessing state information of a blocked thread; maintaining the state information of the blocked thread when the state information indicates that less than a predetermined amount of time has elapsed since the blocked thread ran on the computerized system; and setting the state information of the blocked thread to identify affinity for a particular processor of the multiple processors when the state information indicates that at least the predetermined amount of time has elapsed since the blocked thread ran on the computerized system, wherein the particular processor of the multiple processors is selected based on state information of another thread run on the particular processor, the another thread waking the blocked thread and having shared data with the blocked thread; wherein the multiple processors have processor identifiers which distinguish the multiple processors from each other; and wherein setting the state information of the blocked thread to identify affinity for the particular processor of the multiple processors includes, in response to running the another thread on the particular processor, reading a processor identifier of the particular processor from state information of the another thread and modifying the state information of the blocked thread to include the processor identifier to set the state information of the blocked thread to identify affinity for the particular processor.