Solved

Finding cores in cpu

Posted on 2013-06-14
2
157 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now