Re: get CPU info, RAM info
Roedy Green wrote, quoted or indirectly quoted someone who said :
File i/o, networking etc are basically the same on all platforms.
Mike Schilling wrote:
Only if "all platforms" means Lunux, Unix and Windows, period.
Arne Vajh??j wrote:
I am not sure that I understand the period part.
Some of the API's are defined in the C standard. They will be
everywhere.
Other API's are defined in POSIX. OS'es like OpenVMS and Z/OS
are POSIX compliant.
According to Wikipedia QNX and VxWorks are also POSIX compliant. And
Symbian has a compatibility package.
Since you mention QNX, an older version of which I used for many years some
time back, let me say that it is a really pleasant OS to use, and blazingly
fast. Programming for it was, and by all accounts still is pretty much like
programmin for any *NIX platform, but with some extra goodies that make it a
joy to work with.
QNX uses message-passing over a real-time microkernel Javaat the core of its
activities, and was the earliest and most effective OS of my experiencing at
leveraging some of the advanced multitasking features that have been built
into Intel CPUs since the '286.
As for the portability question, at the top QNX looks like Linux or other
*Nices. While its file system is more advanced than most, or was back then (I
once completely recovered a file system that had lost all its directory
nodes), it still uses the same kinds of C calls, inodes and so forth that most
programmers know.
I see that there is a robust hard real-time Java (pre-5) implementation for QNX.
<http://www.aicas.com/qnx>
Just adding my personal experience to endorse what Arne said.
Even if "Lunux, Unix and Windows" were all that Java supported, or supported
well, that's still the great majority of OS installations. (One can basically
count Mac in that group.)
--
Lew