File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes CPU info Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "CPU info" Watch "CPU info" New topic

CPU info

sandeep iyer

Joined: Dec 04, 2000
Posts: 13
Dear Friends,
How can I know the computer resources
that are available at any instant of time?
It includes the amount of free RAM, CPU speed
HDD free space etc for making some decisions
based on these factors.
Thanks in advance.
Sandeep iyer
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Sandeep ...
I'm going to move this to Java Intermediate ...

Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Marc Ferrazzano

Joined: Oct 03, 2002
Posts: 1
I would love to find that info if anyone has any ideas. Or even where the cdrom is located, and how much room u have on the local hard drives...
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Well that would be sort of operating system dependant.
On windows you would find the dll (provided by MicroSoft) that interfaces with the operating system and write some JNI to interface the dll with your java.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: CPU info
It's not a secret anymore!