[Interest] how to run 21 threads concurrently
sujan.dasmahapatra at gmail.com
Thu Oct 4 15:21:10 CEST 2012
I am not able to run my threads concurrently please help.
How can I run 21 threads concurrently and get the job done by 8 cpus what
I have in my machine.
I am doing like this
std::vector<QFuture<void> > Threads;
for(int z=0; z<21; z++)
Th = QtConcurrent::run(this,&UnrstParser,z);
for(int th=0; th<Threads.size(); th++)
With this first few threads are probably running but not all the threads.
As it's supposed to generate some files by each thread which is not being
generated. Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest