Showing results for October 2010 - .NET Parallel Programming

Oct 28, 2010
0
0

TPL Dataflow preview available for download

Stephen Toub - MSFT Stephen Toub - MSFT

As mentioned here, the Visual Studio Async CTP is now available for download from https://msdn.com/vstudio/async.  Not only does this download add language support into C# and Visual Basic for writing asynchronous methods (in which you can easily “await” tasks), it also includes a new .NET library we lovingly refer to as “TPL...

Parallel ExtensionsTask Parallel LibraryAsync
Oct 27, 2010
0
0

Language support for Tasks!

Stephen Toub - MSFT Stephen Toub - MSFT

Today is a very exciting day for Parallel Extensions, and indeed for all developers using C# and Visual Basic and who are interested in writing more responsive and scalable applications. At the PDC this morning, Anders Hejlsberg just announced the Visual Studio Async CTP, which you can download immediately from the landing page at https://msdn.com/...

Parallel ExtensionsTask Parallel LibraryAsync
Oct 21, 2010
0
0

New Feature? :: ThreadLocal.Values

Danny Shih Danny Shih

We’ve been considering adding a Values property to System.Threading.ThreadLocal<T>.  Values would return a collection of all current values from all threads (e.g. what you’d get if you evaluated Value from each thread).  This would allow for easy aggregations, and in fact in our Parallel Extensions Extras we have a ...

Parallel ExtensionsTask Parallel LibraryCoordination Data Structures
Oct 15, 2010
0
0

FAQ :: StartNew() with TaskScheduler.FromCurrentSynchronizationContext() doesn’t work?

Danny Shih Danny Shih

We’ve seen a number of folks write the following code to execute on the UI thread and get unexpected behavior. TaskScheduler uiScheduler = TaskScheduler.FromCurrentSynchronizationContext();Task uiTask = Task.Factory.StartNew(delegate{    // … Update UI component; BUG!}, uiScheduler);The issue is that the StartNew ...

Parallel ExtensionsTask Parallel Library.NET 4
Oct 7, 2010
0
0

Creating pre-completed Tasks

Danny Shih Danny Shih

 We’ve been considering adding support for creating completed Tasks from an existing result.  Here’s a prototypical example of where this could be valuable. void Task<float> ComputeAsync(...) {     if (!resultIsCached)     {         return Task<...

Task Parallel Library.NET 4Feedback Requested

Feedback