Determine Number of Processors on the Current Machine

     

This ability could come in handy if, say, you had some software product you were licensing per processor. You could use this method to help ensure user compliance:

 

 Runtime.getRuntime().availableProcessors(); //returns an int. //In my case, 1. 

Read 1984 again.

graphics/31inf01.gif



Java Garage
Java Garage
ISBN: 0321246233
EAN: 2147483647
Year: 2006
Pages: 228
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net