If code has never been testing in a dual CPU machine before, new bugs may surface from the more complex interactions between the threads, but so long as you have done your locks correctly, everything just works.
To find out how many CPUs you have in Java version 1.4 or later you can use java.lang.Runtime.availableProcessors()
In earlier versions you could examine the windows SET environment variable NUMBER_OF_PROCESSORS
Sun tested Java spreadsheet engine project I worked on using a machine with 256 CPU s, and boy did it fly! No code changes were need from running in on a desktop machine.
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/dualcpu.html | J:\mindprod\jgloss\dualcpu.html | |
![]() | Please email your feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording,
broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.210] | |
| Feedback | You are visitor number 9,500. | |