• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple CPU

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic