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. QThread priority on Embedded Linux
QtWS25 Last Chance

QThread priority on Embedded Linux

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.7k Views
  • 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.
  • Q Offline
    Q Offline
    QtFriend
    wrote on last edited by
    #1

    I have written an application with a main thread (GUI) and some worker threads for an embedded linux device.
    Since not all threads need to have the same priority, I want to change the priority for those threads that are more critical than others.

    On windows I would set the priority with Thread->start(QThread::LowPriority); , but this isn't possible on linux according to the documentation. They refer to "sched_setscheduler":http://linux.die.net/man/2/sched_setscheduler, but it seems this is the linux scheduling policy for an entire process and not for threads seperately. If that's the case, wouldn't the nice command be an option too?

    Or am I just wrong? Is it possible to set thread priorities in linux? Maybe after patching to RT kernel?

    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