Re: Detecting CPUs and cores



On Mon, 30 Jul 2007 13:25:52 -0500, Chris wrote:

Is there any way for Java to detect the number of CPUs that are
available? Runtime.getRuntime().availableProcessors() returns the number
of cores, not CPUs.

I don't think that is possible. The only OS I have experience with is
Windows, and that treats a dual-core as two CPUs; I believe that *nix
systems do the same as well.
.



Relevant Pages

  • Re: 2 Dual Core Xeons on XP 32 bit
    ... I see in device manager 4 processors. ... Windows XP Home supports a single CPU - but as many cores as you can stuff ... the '4 CPUs' in Task Manager - even though that just actually represents ...
    (microsoft.public.windowsxp.general)
  • Re: 2 Dual Core Xeons on XP 32 bit
    ... I see in device manager 4 processors. ... Windows XP Home supports a single CPU - but as many cores as you can stuff ... CPUs - but as many cores as you can stuff in those processors (so Windows XP ...
    (microsoft.public.windowsxp.general)
  • Re: Are 80x86 badly designed processors ?
    ... >>So, in conclusion, there is a market for good CPUs that aren't supported ... sidesteps all the problems of linux not being like Windows. ... I wasn't being overly serious, but in my own observations, Macs are ...
    (comp.lang.asm.x86)
  • Re: parallel fortran
    ... I doubt I would do this again for a project which will never run anything but 32-bit Windows. ... the Open Watcom compilers do not support OpenMP ... The number of cpus is limited to two. ... i have run mpi on some windows system at home, ...
    (comp.lang.fortran)
  • Re: Why dxdiag shows 2 CPUs on my Compaq Presario notebook
    ... 2004 Windows MVP "Winny" Award ... >> When I run dxdiag on my Company Presario notebook running P4 3.2 Ghz ... >> Can somebody please clarify why it says there are two CPUs. ...
    (microsoft.public.windowsxp.general)