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.

Get Java Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.