DEV Community

Discussion on: Asynchronous vs Synchronous Programming

Collapse
toastking profile image
Matt Del Signore

Nice post! I find a lot of people don't fully understand how asynchronous code is different from stuff like multithreading.

Collapse
hardy613 profile image
Scott Hardy Author

Thanks, Matt!

How would you explain to someone misunderstanding the difference with Asynchronous code and Multithreaded code?

Collapse
toastking profile image
Matt Del Signore

The way I usually explain it is that threads can be though of as parallel lines doing work simultaneously. Asynchronous code can be thought of as a line with a bunch of different segments one after the other. Asynchronous hands of execution over and over.