Closed drelum closed 12 years ago
I have added this comment
for (AffinityStrategy strategy : strategies) {
// consider all processors except cpu 0 which is usually used by the OS.
// if you have only one core, this library is not appropriate in any case.
for (int i = PROCESSORS - 1; i > 0; i--) {
AffinityLock al = LOCKS[i];
if (al.canReserve() && strategy.matches(cpuId, i)) {
al.assignCurrentThread(bind, false);
return al;
}
}
}
It seems that the following code in AffinityLock:
should be changed to
Am I right?