How does Java decide which core to assign a thread or a process? Is there any way to control that? to prevent two large threads from executing on the same core?
Basically what I am asking is for further information on either how multi-threading works in Java, or how to control it within Java.
You can't set processor affinity for specific Threads. But if you split your program into two processes, you should be able to assign those processes to specific processors at the OS level.
http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With