[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:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2006-08-28 11:07:44
Message-ID: 200608281307.44549.kde () carewolf ! com
[Download RAW message or body]

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.


`Allan
 
>> 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