[Interest] QtConcurrent programming need help

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Fri Sep 28 08:48:47 CEST 2012


My CPU no is 8...Can u give me some code snippet dear Philippe and Thiago.
Thanks Sujan

On Thu, Sep 27, 2012 at 10:30 PM, Thiago Macieira <thiago.macieira at intel.com
> wrote:

> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Regards
Sujan Dasmahapatra
skype: sujan.dasmahapatra
yahoo msn : dasmahapatra.aerodynamics at yahoo.co.in
Mobile no : +966-530184511
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120928/690c1f08/attachment.html>


More information about the Interest mailing list