DEV Community

Discussion on: Asynchronous vs Synchronous Programming

Collapse
 
hardy613 profile image
Scott Hardy

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.