Solved

Finding cores in cpu

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse formatting 6 73
micro services spring boot application error 3 146
JList custom Cell Renderer refresh 15 53
GUI builder for Eclipse? 8 27
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 covers a step-by-step guide to install VisualVM launcher in eclipse.

920 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

15 Experts available now in Live!

Get 1:1 Help Now