[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: Matt Rogers <mattr () kde ! org>
Date: 2006-08-28 3:07:56
Message-ID: 200608272207.56517.mattr () kde ! org
[Download RAW message or body]
On Sunday 27 August 2006 21:37, Aaron J. Seigo wrote:
> On Sunday 27 August 2006 20:00, Nasser wrote:
> > can i read this from a file, or is it an environment variable? i will
>
> there is no portable way to do this, so you'll need various operating
> system specific implementations... on linux you could do:
>
> long numCPUs = sysconf(_SC_NPROCESSORS_CONF);
>
> i'm sure you can find info on other systems using google ... this sort of
> gets back to rumblings about wanting a common hardware lib in kde4 =)
is that not what solid is supposed to be?
--
Matt
>> 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