Re: gthread: how many cores do I have?

On Fri, Apr 2, 2010 at 12:29 PM, Freddie Unpenstein
<fredderic excite com> wrote:

> I'm only throwing my 2c in on this topic, because I'd think what the API should be counting is simply how many threads of this application could conceivably be running simultaneously.  Any other measure should be left to a more general system information interface (eg. one that individually numerates each processor and its featues, the cores on that processor and their features, and so forth).
> For example, if I've got two duel-core processors, I'd like to know that I can run 4 threads simultaneously.  I don't really care whether it's one chip with four cores, or two chips with two cores each.  And if I *DO* care, I probably need to know a fair bit more than just the count anyhow.

indeed. your process might be running on a CPU group with less CPUs
than the machine actually has.

knowing the number of installed processors can be very different from
knowing a sensible value for max threads. and even a sensible value
for max threads can depend a great deal on what the threads will
actually do, of course.


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