• Advertisement

Archived

This topic is now archived and is closed to further replies.

Difference between synchronous and asynchronous

This topic is 5128 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am doing some server and peer to peer study and I am not sure i understand what synchronous and asynchronous means. Can anyone explain this in a way that a moron like me can understand what they mean in a computer programming sense.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
http://tangentsoft.net/wskfaq/articles/io-strategies.html

Share this post


Link to post
Share on other sites
Synchronous means that all actions are performed in linear order, one after the other. You''re guaranteed that when you call a function, you KNOW that it has completed when you move on to the next statement.

Asynchronous just means that you can call a function, and then resume processing without the other function returning. You usually have to have some other means of finding out when the other function returns, like callbacks or events or something of the sort.

Asynchronous programming is much more complex than synchronous.


daerid | Legends | Garage Games | Spirit | Hapy | Boost | Python | Google
"Doomed to crumble, unless we grow, and strengthen our communication" - Maynard James Keenan, Tool

Share this post


Link to post
Share on other sites

  • Advertisement