Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. context switch about QThread and pthread
Forum Updated to NodeBB v4.3 + New Features

context switch about QThread and pthread

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 182 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.
  • MihanM Offline
    MihanM Offline
    Mihan
    wrote on last edited by
    #1

    Hi
    I want to know the efficiency of switch between different QThreads. Is the time spent on context switch of pthread less than of Qthread.

    jsulmJ 1 Reply Last reply
    0
    • MihanM Mihan

      Hi
      I want to know the efficiency of switch between different QThreads. Is the time spent on context switch of pthread less than of Qthread.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mihan I don't think there is a big difference. QThread is a wrapper around system API at the end. But you could write a simple app to benchmark that.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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