Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90

Support CPU affinity in QThread

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • None
    • Core: Threads
    • None

    Description

      Today, the OS schedules a CPU for each thread, and might move threads between CPUs. But often, you have a heavy operation in one thread that you do not want to affect the operation of another (possibly GUI?) thread. In that case, it's very unfortunate if the OS decides to place both threads on the same CPU.

      QThread could provide an API for determining the number of (logical?) CPUs, and for explicitly stating what CPU a thread should run on.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            hanssen Andreas Aardal Hanssen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes