Sync / Async
In synchronous programming, the parent process will wait for the child process to complete before it continues. In contrast, in asynchronous, the parent process will not wait for the child process to complete.
Advantage & Disadvantage of Async
The benefit of async programming is…