views:

4103

answers:

4

How to achieve parallel computing process in C# 4.0.

+7  A: 

By using Task Parallel Library, for example.

Igor Brejc
+2  A: 

All of the parallelization options in .NET 3.5 will exist in C# 4.0.

However, the Task Parallel Library will be moved into System.Threading directly as part of the BCL. This will allow constructs like Parallel.For loops, using the new TaskScheduler, etc.

Also, PLINQ will be included in the BCL in .NET 4, which allows for parallel queries to be run.

Reed Copsey
A: 

You can play with the Task Parallel Library on VS 2008 by downloading the CTP here:

http://www.microsoft.com/downloads/details.aspx?FamilyId=348F73FD-593D-4B3C-B055-694C50D2B0F3&displaylang=en

Or you can try the Dev 10 beta here if you're an MSDN subscriber:

[see comment SO thinks I'm a spammer]

There are changes between the two versions in terms of namespaces and some APIs have been tweaked but either will get you started.

Ade

Ade Miller
Ade Miller
A: 

A good article about parallel computing is here.

HotTester

related questions