Does the java engine support using two cpu's?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   amit_maslaton
Posted On:   Thursday, February 21, 2002 04:21 AM

Does the java engine support using two cpu's automatically or do i need to configure it, and how?

Re: Does the java engine support using two cpu's?

Posted By:   Christopher_Schultz  
Posted On:   Thursday, February 21, 2002 05:39 AM

The only control you have is how many threads your Java application uses. If you use a single thread, Java cannot use both processors at once.



If you use multiple threads, its up to the VM as well as the Operating System to decide which CPU runs which threads.



If you have an application that can take advantage of multiple CPUs, I strongly recommend that you split up your work into multiple threads. That way, you'll get a performance boost on multi-CPU machines, but not too much degradation for single-processor boxes.



-chris
About | Sitemap | Contact