Re: gthread: how many cores do I have?



On Mon 2010-03-15 17:15:01, Tor Lillqvist wrote:
> > Why? Isn't the interesting metric the number of cores, rather than the number
> > of fully-independent CPUs?
> 
> Depends on what you mean with "CPU". You seem to use the terminology
> "CPU == chip"?

> Anyway, I didn't suggest using "CPU" but "processor".  Existing
> platform APIs traditionally use the term "processor" and not "core"
> for this, like sysconf(_SC_NPROCESSORS_ONLN) on Linux and
> SYSTEM_INFO.dwNumberOfProcessors on Windows.

Well, some people use 'processor == the thing that fits into cpu
socket'. 'Core' got only popular recently, but is not ambiguous.

And then the valid question is... should the api also count virtual
 cpus from hyperthreading (aka smt?)?

									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]