Running multiple threads on multiple CPU cores?
Can someone tell me if there is a way to run java code (with multiple threads) on multiple processors. Like an option flag for JVM upon running the code?
I've got 30-100 threads and all of them are allocated to a single core and the main idea was to spread them around so the calculation would go faster, but everything i tried so far didn't work.
It would be great if JVM supported an option (flag option) for running such code, but every flag i tried didn't work...