What the difference between Synchronous and Asynchronous?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ganesh22
    Banned
    New Member
    • Sep 2007
    • 81

    #1

    What the difference between Synchronous and Asynchronous?

    What the difference between Synchronous and Asynchronous?
  • pootle
    New Member
    • Apr 2008
    • 68

    #2
    Hi,

    It is quite simple really. Think of synchronous as do it now in this thread, and asynchronous as do it later maybe in this thread, maybe in a different one. That is it really, although asynchronous processing has a lot of side issues like serialisation, deadlock, etc.

    HTH

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Originally posted by ganesh22
      What the difference between Synchronous and Asynchronous?
      Seriously.....

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4


        And this post. All posted within minutes of each other. And all could have been answered very handily by searching on the internet. Please don't make a habit of asking textbook questions to which the answers are readily available.

        As to Synchronous vs. Asynchronous.
        In the context of the XmlHttpRequest object, when you use Synchronous requests, the request is carried out in line with the process that called it, and everything waits on it to complete. Asynchronous requests, however, once submitted, don't wait on a response. A listener is set up to listen for the response, but the execution of the code doesn't stop and wait for it.

        In the context of .NET Ajax extensions, Async means no page refresh. Sync means that the page will refresh.

        Comment

        Working...