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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest