I have a machine which works on Windows 2000 with two CPUs My JVM has a number of threads running full capacity all the time which makes the CPU go above 70%. But is there any way the other CPU can share the load? May be some of the threads can be diverted to the other CPU. If it is not possible for the JVM to share the CPUs, is there a way I can force the operating system to make use of the other CPU to share the load after say 50% capacity of the first CPU? I need to enhance the peformance of my JVM Please help me out with the multiple CPU sharing issue Thanks
author and iconoclast
The threads in your program will indeed run on both CPUs on an SMP machine. If you're not getting high enough utilization, the problem may be that the threads are spending time waiting for I/O, or there is memory contention (bus bandwidth, or synchronization) that is preventing them from all running at full speed.