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

Support CPU affinity in QThread

XMLWordPrintable

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

      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.

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes