Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Will QtConcurrent:run work on a single core Linux target?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Will QtConcurrent:run work on a single core Linux target?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    st2000
    wrote on last edited by
    #1

    Hi,

    I was wondering, will QtConcurrent:run work (if I can get it to compile) on a single core Linux OS target? I wanted to kick off playing videos (which are controlled outside of the Qt paradigm) and not wait to render the Qt elements on the screen. But before I invest time into this, I wanted to know what type of performance improvements I might expect.

    -thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      QtConcurrent does work on single-core systems as well, but you'd better understand that there can't be any performance improvements (exceptions prove the rule). Multithreaded applications do perform better because different code paths can be executed simultaneously, which requires more than one physical core by definition. Quite contrary to, multithreaded applications might (not mandatory) perform even slightly worse on single-core platforms, as there is additional overhead due to context switch.

      However, in the majority of cases it does make well sense to create multithreaded applications for single-core systems, as it will improve the responsivness (the GUI thread is not blocked by other tasks) and applications do scale more or less automatically when deployed to n-core systems later on.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        st2000
        wrote on last edited by
        #3

        That's what I thought. Just wanted to make sure before I went to the trouble of trying my hand at it.

        Speaking of that, here's my other thread where I'm trying to get the syntax figured out:
        http://developer.qt.nokia.com/forums/viewthread/13729/#72211

        -thanks

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved