Community
cancel
Showing results for 
Search instead for 
Did you mean: 
marcusrogerio
Beginner
40 Views

Java Threads in a specific core

Can I force a Java thread to execute in a specific core in a multicore processor?

0 Kudos
1 Reply
TimP
Black Belt
40 Views

The answer seems to be "it depends." If you do a short web search, you should find the recommendation to use the Windows affinity control in Task Manager, if that is your OS. That might at least give you a way to find out whether affinity control is useful in your scenario, whatever that may be. For linux, you might be able to use taskset.
Reply