dual CPUs : Java Glossary

dual CPUs
Java automatically takes advantages of all the CPU (Central Processing Unit)s you have. All you need is more than one thread. If you have two CPUs they each work on all of your threads. Threads are not assigned to a particular CPU.

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.


CMP homejump to top 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
logo
Please email your , 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 : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, please quote it and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. Threatening to kill me or spouting obscenities has yet to persuade me to change my mind.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.210]
You are visitor number 9,500.