Results 1 to 3 of 3

Thread: Synchronous and asynchronous classes difference

  1. #1
    Join Date
    May 2013
    Location
    Georgia,Tbilisi
    Posts
    32
    Thanks
    7
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Synchronous and asynchronous classes difference

    I'm reading "Foundation of Qt Development" book and I'm reading this line of text:
    "QFtp and QHttp classes are asynchronous"

    I know this classes are deprecated but the main reason why I create this thread is to figure out difference between Synchronous and asynchronous classes.

    So,what's the difference?

  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: Synchronous and asynchronous classes difference

    The wording in the book is maybe not very precise. What it means is that both these classes perform their work in a non-blocking (asynchronous) manner. It means that by executing their functions you only schedule an operation to be performed -- when the function returns the operation is not yet complete. This is opposed to synchronous (blocking) calls, e.g. QFile::read() which block the flow until the operation is complete.
    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.


  3. The following user says thank you to wysota for this useful post:

    Higgs (16th September 2014)

  4. #3
    Join Date
    May 2013
    Location
    Georgia,Tbilisi
    Posts
    32
    Thanks
    7
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Synchronous and asynchronous classes difference

    Thanks.
    This is good simple explanation.

Similar Threads

  1. thread Synchronous problem
    By wearilybird in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2014, 11:13
  2. QtSerialPort synchronous approach
    By codein in forum Newbie
    Replies: 2
    Last Post: 4th September 2012, 09:45
  3. Synchronous QFtp?
    By aarpon in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2009, 09:28
  4. asynchronous vs. synchroneous
    By timmu in forum Qt Programming
    Replies: 4
    Last Post: 28th August 2009, 10:48
  5. Asynchronous server msg vs synchronous functions
    By nouknouk in forum Qt Programming
    Replies: 9
    Last Post: 2nd February 2006, 17:10

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.