The difference between synchronous and asynchronous execution may seem a bit confusing at first, but can be explained very easily.
Synchronous,
Your program is executed line by line, one line at a time. Each time a function is called, program execution waits until that function returns before continuing to the next line of code.
Asynchronous,
Your program is also executed line by line, one line at a time executed sequentially, but does not wait for a value to be returned by the function called.
Summary:synchronous operation blocks a process till the operation completes.
asynchronous operation is non-blocking and only initiates the operation.
No comments:
Post a Comment