I have a Machine with Win 2000, it is a multiprocessor machine with 4 Intel processors in it. When I run
a
java program with 4 threads the threads JVM should utilize the available
processors(Intel chips) but it is not happening so as of now(I doubt).... is there
any clue to do so... By default the threads that created in the JVM are green threads, means all the threads
created in a JVM are user threads and are not OS level native threads. So when I run a Java program with
4 threads in a multi-processor environment all the threads run in only one processor while all the other
processor are not used by our java threads. I use the following Java version
"java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010502w (JIT enabled: jitc)). Is there any way to use
all the available processor effectively means when I spawn 4 threads is there a possibility that the 4 threads
use all the 4 available processors? Please let me know the possible ways of doing so and also give me some
reference on this topic.
Regards,
Bala