Results 1 to 5 of 5

Thread: pater design for qthread manager

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: pater design for qthread manager

    It's educational question and not a problem per se.
    Currently with i7 Core we have 8 thread's and some people would like to do, lets say 2 things at the same time, so I want to implement in my app. how man thread's can be used so one can utilize 100% of cpu or do "background" operation with only 1 thread / core. (I already did implemented that, with option that detects current CPU threads count)

    I read about QThreadPool that's why I ask here question regarding opinion. (maybe for another ideas to)

    Why using QThreadPool is beter then QList<QThread > approach? With QList I run test with many threads and everything works fine.
    IMHO this is similar although I don't know how this compare performance wise.

    EDIT:
    Situation in with I will use this is:
    I have i.e. 2k jobs, those jobs use 100% core each and can be performed in different amount of time. So with Core i7 we have 8 threads, with C2D 2 thread's etc. So I need to create n threads to run n jobs at the same time. But I want have an option to use only 1 core so I can, i.e. browse www. I don't want to delete qthread and class that I move into it because it will be reused for the next operation to maximise performance.
    Last edited by Talei; 5th November 2011 at 22:41.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

Similar Threads

  1. Qt Memory manager
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2009, 17:43
  2. Replies: 3
    Last Post: 5th October 2008, 23:41
  3. Download Manager Like IDM(Internet Download Manager)
    By sathiskumarmsk in forum Qt Programming
    Replies: 1
    Last Post: 27th July 2008, 15:52
  4. mapping manager
    By sreedhar in forum Qt Programming
    Replies: 6
    Last Post: 16th February 2007, 13:48

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
  •  
Qt is a trademark of The Qt Company.