[Interest] QtConcurrent programming need help

Thiago Macieira thiago.macieira at intel.com
Thu Sep 27 21:30:08 CEST 2012

On quinta-feira, 27 de setembro de 2012 21.32.36, Sujan Dasmahapatra wrote:
> I am working on an existing application where  threads are submitted
> concurrently. he is submitting 8 threads together and then he is waiting
> for all 8 threads to be finished to submit the next 8 threads. In this way
> after every 8 threads he is waiting and a lot of time is being taken for
> waiting. Can you me some suggestions how can I skip this waiting after
> submitting 8 threads to improve speed. Total number of cpu is 8 so he is
> submitting 8 threads at  a time.

Submit all jobs all at once.

QtConcurrent operates on the global QThreadPool, which defaults to the number 
of CPUs on your system.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120927/08d0ae6d/attachment.sig>

More information about the Interest mailing list