Java Glossary : dual CPUs

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : D words : dual CPUs.

dual CPUs
Java automatically takes advantages of all the CPUs 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 JDK 1.4+ 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 CPUs, and boy did it fly! No code changes were need from running in on a desktop machine.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 242.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/dualcpu.html J:\mindprod\jgloss\dualcpu.html