An analogy of synchronous asynchrony

Source: Internet
Author: User

On the Internet to see the synchronous asynchronous interpretation, feel very image, reproduced come to remember.

The difference between synchronous and asynchronous

For example: Ordinary B/s mode (synchronous) Ajax Technology (asynchronous)

Synchronization: Submit request, wait for server processing, processing completed returns this period the client browser cannot do anything

Asynchronous: Requests are processed through event triggering server processing (which is still something the browser can do)

Synchronization is when you ask me to eat, I hear you go to dinner, if not heard, you keep barking until I tell you to hear, to go to dinner together.

Async is you call me, and then go to dinner, I can get the news immediately, may wait until after work to eat.

So, if I ask you to eat in a synchronized way, ask me to eat with the Async method, so you can save money.

For example, a call is a synchronous message that is asynchronous

An analogy of synchronous asynchrony

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.