I read somewhere sometime that we should have one JVM per core. I also read that Java is not good with multiple cores or CPUs hence scala is preferred.
Recently on a link I read that multiple threads do execute in different core if available.
Questions:
- does JVM takes multiple cores/CPUs in consideration and execute each thread in separate core if available?
- usage of scala for better usage of cores is somewhat different that just execution in separate core?
- if JVM executes each thread in separate core (if available) what is the meaning of one JVM per core, with a single JVM I can utilize all the cores.
- if answer to 1 is yes, what is the use of deploy a war/ear in multiple instances of server running in same machine.