The Artima Developer Community
Sponsored Link

Java Answers Forum
How to find CPU Name & Speed in Java prg

2 replies on 1 page. Most recent reply: Nov 20, 2006 6:55 AM by Viswanatha Basavalingappa

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

How to find CPU Name & Speed in Java prg Posted: Sep 19, 2006 1:11 PM
Reply to this message Reply
Advertisement
How to get the following info of the CPU using Java api/prg.
1. CPU Name
2. CPU Speed

Thanks in Adv.
Viswa
---------


M Adawi

Posts: 9
Nickname: adawi
Registered: Mar, 2006

Re: How to find CPU Name & Speed in Java prg Posted: Sep 24, 2006 12:51 PM
Reply to this message Reply
I don't know if This is an answer for your question but I hope this is helpful

System.getProperties is a static method that let you get the current properties of your machine, see the API doc, .............what about getenv in the same class ?

Tell me how you work it out.

Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

Re: How to find CPU Name & Speed in Java prg Posted: Nov 20, 2006 6:55 AM
Reply to this message Reply
public class TestCPU {
public static void main(String[] args) {
System.getProperties().list(System.out);
}
}

got the
following and amny more details...
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+m...

but Speed was not..

Flat View: This topic has 2 replies on 1 page
Topic: How to find CPU Name & Speed in Java prg Previous Topic   Next Topic Topic: PLS HELP abt making/adding a componet in runtime

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use