Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Read CPU Identification  RSS feed

 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to read CPU Identification infos from a Java application or Servlet JSP page. It seems a benchmark class will capture the CPU infos.

And I havent figured out a valid solution yet.

Regards,
Jiafan
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that can be done with plain Java. There is the "os.arch" system proeprty, but it only gives a general idea of the processor family. You may have to use JNI to access an OS-specific routine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!