What are Synchronous and Asynchronous operations in C# ?
- Synchronization is a way to create a thread-safe code where only one thread can access the resource at any given time.
- Asynchronous call waits for the method to complete before continuing with the program flow. Synchronous programming badly affects the UI operations, when the user tries to perform time-consuming operations since only one thread will be used.
- In Asynchronous operation, the method call will immediately return so that the program can perform other operations while the called method completes its work in certain situations.
No comments