An embodiment of the invention is a technique to affinitize a thread in a
multiprocessor system having N clusters of processors. A count threshold
is obtained for thread affinity of the thread. A first thread count is
determined. The thread is affinitized to a first cluster in the N
clusters of processors according to the first thread count and the count
threshold.