Parallel Programming

The new Parallel Programming features in .NET 4. Formally known as the Parallel Extensions Library for .NET, these new features have graduate from DevLabs and are available out of the box in Visual Studio 2010. These exciting new features in .NET help developers take full advantage of all those cores now shipping in modern computers. It’s massive threading made easy.

 Task

   —Represents an asynchronous operation.

Parallel programming is introduced in C# 4.0 using the Task libraries. There are many aspects of Parallel programming and how to use the Task libraries. Task can be used as Threads in multi-threading programming. The Task class is a great representation for any asynchronous operation, even those implemented purely as asynchronous I/O.

We can use the Task for defining asynchronous methods and the main feature of task is the co-operative cancellation. This is against the Thread manipulation, where we can forcibly cancel a thread. Also a task can use the same synchronization context from UI thread using the TaskScheduler.

For more details

http://blogs.msdn.com/b/toub/

http://blogs.msdn.com/b/pfxteam/

http://msdn.microsoft.com/en-us/concurrency/default.aspx

http://code.msdn.microsoft.com/site/search?f%5B0%5D.Type=Topic&f%5B0%5D.Value=Parallel%20Programming&f%5B1%5D.Type=Affiliation&f%5B1%5D.Value=Official&f%5B1%5D.Text=Microsoft

 

Advertisements

About ambilykk

I am a Technology Evangelist on Microsoft Technologies. I am carrying the passion on Microsoft technologies specifically on web technologies such as ASP .Net and Ajax. My interests also include Azure and Visual Studio. Technology adoption and learning is my key strength and technology sharing is my passion.
This entry was posted in C#, Visual Studio 2010, VSTS 2010 and tagged , . Bookmark the permalink.

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