PDA

View Full Version : qtthread to speed up the algorithm



leonardhead
20th August 2010, 03:04
Hello,

I have a problem of parallel 3 different algorithm, I want to use the qthread to run this 3 algorithm at the same time.

if i run them in sequence, it will cost 12mins 12 mins and 17 mins which is 41 mins totally.

I tried the QThread to let them run at the same time, the cpu usage shows that they are running at the same time. However, it cost me 2 hours to finish the whole process.

I am just wondering is there anyway to run 3 different algorithm at the same time, and fast speed.


thank you

ecanela
20th August 2010, 06:09
how many core have you computer?

each algorithm must run in one core to reduce the execution time. if only have one core the 3 algorihtm run at the same time using the processador, and when interchange the algorithm CPU cyles are used and take more time to run the 3 programs in batch mode.

sorry my poor english