Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.

Java Threads in a specific core

marcusrogerio
Beginner
338 Views

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

0 Kudos
1 Reply
TimP
Honored Contributor III
338 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.
0 Kudos
Reply