.NET 4.0 Parallelization Overview

No.of Views507
Bookmarked0 times
Downloads 
Votes0
By  usamawahabkhan   On  22 May 2010 05:05:15
Tag : .NET Frameworks , General
Parallelization is a major Enhancements in Microsoft dot.net 4.0 in .netframework 4.0 give`s advantage of multi core processors . Now you can divide load of your functions Parallelly on Multi Core Processors.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

Parallelization is a major Enhancements in Microsoft dot.net 4.0 in .netframework 4.0 give`s advantage of multi core processors . Now you can divide load of your functions Parallelly on Multi Core Processors.

 

Image Loading

Advantage Of Parallel Programing

Many applications contain some segments of code that will benefit from parallelization; and some that will not. Code that is likely to benefit from being run in parallel will probably have the following characteristics:

• It can be broken down into self-encapsulated units.
• It has no dependencies or shared state.

A classic example of code that would benefit from being run in parallel is code that goes off to call an external service or perform a long-running calculation (for example, iterating through some stock quotes and performing a long-running calculation by iterating through historical data on each individual quote).
 

This type of problem is an ideal candidate for parallelization because each individual calculation is independent so can safely be run in parallel. Some people like to refer to such problems as “embarrassingly parallel” (although Stephen Toub of Microsoft suggests “delightfully parallel”!) in that they are very well-suited for the benefits of parallelization.(Ref: Apress.Introducing.dot.NET.4.0.with.Visual.Studio.2010.Feb.2010)

I Try to Show Deference between Serialized and Parallel functions

Sanpshots 

Image Loading


Here , i have given the how to write code for parallel invoking.

Image Loading

 

Image Loading

Sample Project Source

Download source files -33 kb

 
Sign Up to vote for this article
 
About Author
 
usamawahabkhan
Occupation-Not Provided
Company-Not Provided
Member Type-Senior
Location-Pakistan
Joined date-06 May 2010
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top