views:

215

answers:

2

Hi,

I get to understand the .Net 4.0 provides a better approach on multi-threading with tasks. Is there a way that it is possible to do the same approach in .Net 3.5 or .Net 3.0.

Thanks, Priya.R

+1  A: 

No, if you want to use System.Threading.Tasks, you will have to upgrade to .NET 4.0

Dean Harding
+2  A: 

I believe the Reactive Extensions for .NET (Rx) include some of the .NET 4.0 concurrency bits.

So that might be worth a look: http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx

Check out the System.Threading.dll

Jacob Stanley
You believed correctly. They backported that API to use with Rx.
Snake
Yeah, we've been using Rx since it was released for Silverlight and I vaguely remembered coming across the Tasks namespaces while poking through the assemblies. It probably won't perform as well as .NET 4.0 though because it doesn't use the new work stealing thread pool.
Jacob Stanley