What do we mean by Async and Parallel Programming and why do we need it.?


clip_image002

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.

Technorati Tags: ,,
Advertisements

One response to “What do we mean by Async and Parallel Programming and why do we need it.?

  1. Pingback: Asynchronous Programming Series « Using Abhik.Mitra.myThoughts;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s