Example of a typical Asynchronous Operation.
Suppose we want to get weather report from a web service. Typically we fire the web Request and wait for the result to arrive. During the waiting period, our application freezes up .To the end user it might give a feel that the app has crashed. This is undesirable.
Instead, if we make the WebRequest call asynchronously, our app stays responsive and it does not freeze up .The buttons still work and we can minimize or maximize the app.
Example of Parallel Processing.
Parallel processing is fairly self-explanatory. It makes sense to code our CPU intensive operations in a way, it can harvest the power of multiple cores. We can reduce time by diving workload and executing chunks simultaneously in various cores.
So how do we do it?
Microsoft has come up with something called the Task Parallel Library which utilizes Tasks for performing asynchronous and parallel operations.
So in this series. We are going to delve in the entire new Asynchronous and Parallel Programming model offered by .NET.