Print Page | Close Window

Parallel programming Net 4

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2038
Printed Date: 21-Apr-2026 at 10:29pm


Topic: Parallel programming Net 4
Posted By: BillG
Subject: Parallel programming Net 4
Date Posted: 30-Jul-2010 at 9:37pm
There is a new book out called Pro .NET 4 Parallel Programming in C#. I realize that multithreading is not a good fit with IdeaBlade but will I get any benefits from the new Parallel features of Net 4 in a n-tier WPF app using Devforce?
 
Bill
 



Replies:
Posted By: ting
Date Posted: 03-Aug-2010 at 7:30pm
Yes, you can certainly make use of the Task Parallel Library in your application.  We did not integrate with it because it is not available in Silverlight 4 and we wanted to keep our API consistent.  So we created AsyncParallelTask and AsyncSerialTask which are threaded extensions of the EntityManager that handle the thread delgation, synchronization, and merging of results back on the primary thread.
 
Go ahead and make use of the Task Parallel Library, but just remember that only a single thread may make calls onto an instance of the EntityManager.
 
 



Print Page | Close Window