Difference between synchronous and asynchronous

Started by
1 comment, last by Ashandir 20 years, 3 months ago
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.
Advertisement
http://tangentsoft.net/wskfaq/articles/io-strategies.html
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
daerid@gmail.com

This topic is closed to new replies.

Advertisement