Results 1 to 2 of 2

Thread: Qthread faster than pthread???

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qthread faster than pthread???

    I needed to implement a parallel matrix multiplication in some different programming languages, frameworks and platforms to compare performance.

    My first implementation was in pure C using pthread.

    After, I implemented it using Qt, with Qthreads. I believed that I'd get lower performance with Qt, cause I read that Qthread is implemented with pthreads.

    For my surprise the Qt program was 2x to 3x times faster than the C application. Does anyone have some ideas why this happens?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qthread faster than pthread???

    Most likely your C implementation was simply suboptimal.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. error in creating QThread and Pthread
    By shakthi in forum Qt Programming
    Replies: 4
    Last Post: 30th July 2011, 16:36
  2. qt-4.5.3 linking issue (excessive pthread)
    By Ronayn in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2011, 14:48
  3. -pthread havoc
    By Cruz in forum Qt Programming
    Replies: 8
    Last Post: 10th March 2010, 12:22
  4. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  5. faster QScrollView
    By firas in forum Qt Programming
    Replies: 2
    Last Post: 29th April 2006, 18:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.