Results 1 to 2 of 2

Thread: qtthread to speed up the algorithm

  1. #1

    Default qtthread to speed up the algorithm

    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

  2. #2
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Thanks
    6
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtthread to speed up the algorithm

    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

Similar Threads

  1. Algorithm for smallest number not in a list
    By zeldaknight in forum General Programming
    Replies: 4
    Last Post: 7th June 2010, 01:20
  2. Sutherland-Hodgman algorithm of clipping
    By YaK in forum General Programming
    Replies: 0
    Last Post: 29th March 2009, 10:54
  3. QtThread IO debug question
    By zl2k in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2008, 23:16
  4. Dijkstra's Algorithm
    By therealjag in forum Qt Programming
    Replies: 2
    Last Post: 6th March 2006, 10:16
  5. Easy algorithm to encrypt / decrypt string data?
    By Mike in forum Qt Programming
    Replies: 7
    Last Post: 2nd March 2006, 06:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.