We can observe the following differences between asynchronous and synchronous:
- Asynchronous means no waiting time. The caller function does not wait for a response from the called function; it continues doing its next task.
- Synchronous means waiting time. The caller function should wait for a response from the called function and it cannot continue doing its next task. The caller function should wait until the called function finishes its job and returns results (success or failure).
- An asynchronous function does not block or wait for it's called function's response. It will receive response asynchronously.
- AP supports a non-blocking programming style; whereas, synchronous programming (SP ...