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
-
What do you say about my thoughts? @stephentoub
Asynchrony or synchrony describe the relationship between two or more actions.
When we discuss synchrony or asynchrony in programming, we need to define these actions:
How it works in practice:
Conclusion:
Synchronicity is when the waiting and the task being awaited occur at the same time, meaning synchronously.
Asynchronicity is when the waiting and the task being awaited occur NOT at the same time, meaning asynchronously.
Asynchronous programming allows a thread that is waiting for a task to complete to be freed up to perform other useful work.
Beta Was this translation helpful? Give feedback.
All reactions