Re: Detecting CPUs and cores



On Jul 30, 10:07 pm, Eric Sosman <esos...@xxxxxxxxxxxxxxxxxxxx> wrote:
The differences make a difference -- but taking proper account
of them is far more involved than simply counting cores or chips.

There is no real "taking proper account of them" for the programmer to
do, other than that to get maximum use you need to have at least as
many concurrent threads of program as there are cores/hyperthreads/
whatever. In otherwords, at least the number returned by
availableProcessors().

Optimizations for the details of the specific hardware architecture's
details are for the JIT.

Only JVM coders need concern themselves with these.

.



Relevant Pages

  • Re: Sounds familiar
    ... When I looked over the available documentation for the Tilera chips, one thing that struck me is that like the IntellaSys chips, some aspects of the underlying hardware are exposed to the programmer. ... The difference in the IntellaSys chips-- at least with what's documented on the web site-- is that the programmer must start with a deep awareness of all the quirks and design decisions of the architecture. ...
    (comp.lang.forth)
  • Re: commercial c compilers vs free c compilers
    ... I meant execution speed, after all the end user cares about how well ... non-Intel chips. ... for a good programmer - and often it's the speed of the programmer that ... Even very good c code can be difficult to optimise in asm. ...
    (comp.lang.c)
  • Re: commercial c compilers vs free c compilers
    ... you seem to be quoting text from Stephen Sprunk's post up-thread. ... I meant execution speed, after all the end user cares about how well ... non-Intel chips. ... for a good programmer - and often it's the speed of the programmer that ...
    (comp.lang.c)
  • Re: computer-driven fans
    ... AVR Startup Package ... Price? ... connectors and so on), an in-system programmer, and the free AVR Studio ... The SAM7 chips are ARM7 devices. ...
    (comp.arch.embedded)
  • Re: computer-driven fans
    ... AVR Startup Package ... Price? ... connectors and so on), an in-system programmer, and the free AVR Studio ... The SAM7 chips are ARM7 devices. ...
    (comp.arch.embedded)