[concurrency-interest] Re: Any support to determine the number of processors ?

Juergen Kreileder jk@blackdown.de
Wed, 23 Jul 2003 02:23:49 +0200


Gary Gregory <ggregory@seagullsw.com> writes:

> You'd expect this to show up as a System property, like today we
> have:
> 
> sun.cpu.endian = little
> 
> sun.cpu.isalist = pentium i486 i386

[There's no guarantee that these properties are available in all JVMs.]
 
> Maybe 1.5 will have a "sun.cpu.count" or some such.

1.4 already has Runtime#availableProcessors().


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux/java2-status/