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?
Basi
How does Java decide which core to assign a thread or a process?
It doesn't. The operating system does.
Is there any way to control that? to prevent two large threads from executing on the same core?
Not within Java.
Basically what I am asking is for further information on either how multi-threading works in Java, or how to control it within Java.
There isn't any. It is all done by the OS.
Basically you are asking the wrong question.