Usage
AffinityStrategies
- ANY: Any free cpu.
- SAME_CORE: Must be a cpu on the same core.
- SAME_SOCKET: Must be a cpu on the same socket/chip but different core.
- DIFFERENT_CORE: Must be a cpu on any other core (or socket)
- DIFFERENT_SOCKET: Must be a cpu on any other socket.
Reference
http://ifeve.com/thread-affinity/
http://codingtutortips.blogspot.com/2012/01/java-thread-affinity-support-for-hyper.html
http://ifeve.com/java-context-switch/