Results 1 to 6 of 6

Thread: How set a processor affinity mask for the specified thread?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How set a processor affinity mask for the specified thread?

    I have several thread. And I need to one thread execute on one core (processor) and the second thread execute on second core (processor).

    I think QtConcurrent perform another function. Or I mistaken?

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How set a processor affinity mask for the specified thread?

    Quote Originally Posted by Ritor View Post
    I have several thread. And I need to one thread execute on one core (processor) and the second thread execute on second core (processor).
    This is handled by OS not be program. And on most of the OS this is default behavior. Means If we created a threaded app. Then all cores of CPU will be utilized equally.

    Quote Originally Posted by Ritor View Post
    I think QtConcurrent perform another function. Or I mistaken?
    Programs written with QtConcurrent automatically adjust the number of threads used according to the number of processor cores available.

Similar Threads

  1. Thread Ownership Problem
    By tntcoda in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2009, 00:18
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. Replies: 10
    Last Post: 20th March 2007, 22:19
  4. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49

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.