org.mentaaffinity.sample
Class BindToWholeCore
java.lang.Object
org.mentaaffinity.sample.BindToWholeCore
public class BindToWholeCore
- extends Object
If your architecture supports hyper-threading but you don't want another thread sharing the core with your high-priority thread
you can assign a thread to the WHOLE core. That means your thread will run alone in the core and the other logical processor will remain
idle until the thread exits and calls unbind. Besides not having to compete with any other thread for the whole core, another
advantage of doing that is that the thread can have the L1 cache all to itself.
- Author:
- Sergio Oliveira Jr.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindToWholeCore
public BindToWholeCore()
main
public static void main(String[] ags)
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.