dual CPUs : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

dual CPUs
Java automatically takes advantages of all the CPUs (Central Processing Units) 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 (Central Processing Unit).

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.


This page is posted
on the web at:

http://mindprod.com/jgloss/dualcpu.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\dualcpu.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.97.14.87]
You are visitor number