[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: getting number of processors on user machine
From:       Anatoli Gorchetchnikov <anatoli () cns ! bu ! edu>
Date:       2006-08-28 11:21:13
Message-ID: 200608280721.14094.anatoli () cns ! bu ! edu
[Download RAW message or body]

Здравствуйте!

В сообщении от 28 августа 2006 07:07 Allan Sandfeld Jensen написал(a):
> On Monday 28 August 2006 04:00, Nasser wrote:
> > hello,
> >
> > i would like to know how many processors the user has on the machine...
> > for example, are they running a uniprocessor, or a dual-core, or quad
> > core...
> >
> > this is because i would like to create QThreads depending on how many
> > processors they have, so as to balance the load as much as possible
>
> Just to give you the point-of-view from a kernel developer:
>
> Create as many threads as to maximize the concurrency of your application
> and leave load balancing to the kernel please.

And how that will work? I run neural networks and can have as many threads as 
I want for example. But if I run it on a single processor machine, the 
overhead of switching these threads will kill me, so I better have as many as 
I have processors...


> `Allan

--
Regards,

Anatoli.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic