Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: QThread count in Qt applications.

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

    Default Re: QThread count in Qt applications.

    It's correct but it doesn't do anything. The only thing I see incorrect (but only because of knowing what "issues" you experience) is that you read all the data each and every time and that's why you get "SocketSocket" instead of two "Socket" reads. It's because you probably don't understand (or just forgot about it) that TCP is a stream of bytes and is not record-based. The fact that on the sending side you write two "Socket" words separately won't cause the receiving end to read two datagrams containing one "Socket" entry each. And you get 99% of the CPU usage probably because you are dumping the contents of the sockets to the console which is terribly time consuming.
    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.


  2. #22
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QThread count in Qt applications.


Similar Threads

  1. Count files of a directory
    By radu_d in forum Qt Programming
    Replies: 6
    Last Post: 27th March 2012, 03:17
  2. Replies: 0
    Last Post: 17th March 2010, 12:17
  3. Count indexes in QListView
    By been_1990 in forum Qt Programming
    Replies: 5
    Last Post: 17th December 2009, 19:21
  4. Replies: 7
    Last Post: 25th April 2009, 05:13
  5. [QGLWidget] Count FPS
    By Macok in forum Qt Programming
    Replies: 0
    Last Post: 13th April 2009, 14:01

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
  •  
Qt is a trademark of The Qt Company.