The concepts of asynchronous and synchronous programming #111300
Unanswered
Symasoiti97
asked this question in
General
Replies: 2 comments 2 replies
-
Maybe you wanted to ask why exactly the terms "synchronous" and "asynchronous" were chosen? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Synchronous - you call a person, ask a diffciult question and wait for an answer while holding a phone and occupying your hands. Asynchronous - you call a person, ask a difficult question and tell to call you back when there is an answer. Meanwhile you do other things and resume the conversation when that other person is ready |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What do you think about my thoughts?
Synchronicity and asynchronicity describe the way two or more actions are executed in relation to each other.
Defining Actions:
When discussing synchronicity or asynchronicity in programming, we need to define these actions:
How It Works in Practice
In Synchronous Code:
In Asynchronous Code:
Conclusion:
Asynchronous programming allows a thread that is waiting for a task to complete to be freed up so it can perform other useful work.
Beta Was this translation helpful? Give feedback.
All reactions