aspose file tools
The moose likes Threads and Synchronization and the fly likes Multiple CPU Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Multiple CPU" Watch "Multiple CPU" New topic
Author

Multiple CPU

Surendran Velath
Greenhorn

Joined: Apr 23, 2003
Posts: 19
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
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24061
    
  13

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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple CPU
 
Similar Threads
Question about threads
java threads
multiprocessor servers
To scott and Henry
Capacity planning (performance tuning of WLP 8.1 SP6 application)