This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

CPU info

sandeep iyer
Greenhorn

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


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

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...
thanks,
Cindy Glass
"The Hood"
Sheriff

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
 
GeeCON Prague 2014
 
subject: CPU info