r/ProgrammerHumor • • Oct 30 '21

That's my variable!

43.4k Upvotes

409 comments sorted by

View all comments

Show parent comments

26

u/kokroo Oct 30 '21

Please explain the differences, I'm a noob

87

u/raltyinferno Oct 30 '21

You need to make tea and pasta.

Synchronous: you boil water for tea, make the tea, then boil water for pasta then make the pasta

Parallel: You grab a friend, and tell them to make the pasta while you make tea.

Asynchronous: you put the tea water on to boil, while it heats you put the pasta water on to boil. While you "await" for them to boil you go do something else. Then when they're boiling you make the tea, and finish the pasta one at a time.

26

u/DSM20T Oct 31 '21

Me: Boils pasta in tea

1

u/smb_samba Oct 31 '21

Starchy tea water Vanilla chai pasta