[Qt-interest] QThread and multi-core

Arnold Krille arnold at arnoldarts.de
Fri Apr 3 20:08:18 CEST 2009


On Friday 03 April 2009 17:41:41 Fabio Dago wrote:
> This is very interesting, but how can I know how many core are there in
> the system in which my applcication runs?
> I don't think Qt helps in this case. Is there any other library that
> allow to know this and other hardware informations?

QThread::idealThreadCount() is actually the number of cores/cpus present on 
the system...

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090403/b35ba019/attachment.bin 


More information about the Qt-interest-old mailing list