Solved

Finding cores in cpu

Posted on 2013-06-14
2
162 Views
Last Modified: 2013-10-16
hi experts

Is ther any way to find out the number of cores in a CPU in java ?
Runtime.getRuntime().availableProcessors() will give the number of cpus

How do i know how many cores does each cpu have ?

thanks
0
Comment
Question by:royjayd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 39248928
0
 

Author Comment

by:royjayd
ID: 39248963
that question talks about number of processors, this one asks about cores in a processor

currently i am running 4 processors
(i see that using : Runtime.getRuntime().availableProcessors()  )

but each processor has 6 cores
In my unix box
 $cat /proc/cpuinfo

cpu family      : 6     -- number of cores

Is there a way in java to see that ?

thx
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb stateless example 2 44
Is there a simpler dropbox system? 10 44
Java basic valueOf question 1 35
Java program running SQL query 5 50
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question