Showing results for Parallel Extensions - .NET Blog

Jun 25, 2010
Post comments count0
Post likes count0

Concurrency Visualizer: A Case Study

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

Boby George and Pooja Nagpal - testers on the Parallel Computing Platform team responsible for the parallel programming support in .NET 4- built a parallel spell checker algorithm and used the Concurrency Visualizer to analyze and improve the performance and scalability of their implementation.Optimizing Parallel Applications Using Concurrency...

.NET Parallel Programming
Jun 21, 2010
Post comments count0
Post likes count0

PLINQ’s Ordering Model

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

In order to execute parallel queries as efficiently as possible, Parallel LINQ (PLINQ) treats ordering as optional. By default, PLINQ considers sequences to be unordered, unless the user explicitly opts into maintaining ordering using either the AsOrdered or the OrderBy operator.Roy Patrick Tan wrote a detailed article that expl...

.NET Parallel Programming
Jun 13, 2010
Post comments count1
Post likes count0

“Task.Factory.StartNew” vs “new Task(…).Start”

Stephen Toub - MSFT
Stephen Toub - MSFT

With TPL, there are several ways to create and start a new task.  One way is to use the constructor for task followed by a call to the Start method, e.g.        new Task(...).Start();and the other is by using the StartNew method of TaskFactory, e.g.        Task.Factory.StartNew(....

.NET Parallel Programming
Jun 13, 2010
Post comments count0
Post likes count0

Upcoming NYC user group presentation on Parallel Programming

Stephen Toub - MSFT
Stephen Toub - MSFT

I'm going to be in Manhattan on June 29th, and while there I'll be presenting to a joint meeting of the NYC .NET Developer's Group and the New York ALT.NET Group on parallel programming with .NET 4 and Visual Studio 2010.  Details are available here, and I'll look forward to seeing you there!Thanks!Stephen

.NET Parallel Programming
Jun 6, 2010
Post comments count0
Post likes count0

Parallel Computing at TechEd North America 2010

Stephen Toub - MSFT
Stephen Toub - MSFT

Are you attending TechEd in New Orleans this week?  If so, check out the multitude of parallel computing-related breakout sessions, including: The first two (DEV314 and DEV317) are being presented by Huseyin Yildiz, one of the primary developers on the Parallel Computing Platform team responsible for the Task Parallel Library.En...

.NET Parallel Programming
May 25, 2010
Post comments count0
Post likes count0

Lesser-known Multi-threaded Debugging Support in Visual Studio 2010

Stephen Toub - MSFT
Stephen Toub - MSFT

We’ve been very excited about the new debugging windows in Visual Studio 2010, namely Parallel Tasks and Parallel Stacks, as well as the newly revamped Threads window, and thus we’ve talked about them quite a bit. For an overview, you can read the MSDN Magazine article at https://msdn.microsoft.com/en-us/magazine/ee410778.aspx, and Daniel Moth has ...

.NET Parallel Programming
May 24, 2010
Post comments count0
Post likes count1

Why is TaskContinuationsOptions.ExecuteSynchronously opt-in?

Stephen Toub - MSFT
Stephen Toub - MSFT

For a relatively advanced feature, I've been surprised how often this question has come up recently. When a task completes, its continuations become available for execution, and by default, a continuation will be scheduled for execution rather than executed immediately.  This means that the continuation has to be queued to the scheduler a...

.NET Parallel Programming
May 4, 2010
Post comments count0
Post likes count0

ParallelExtensionsExtras Tour – #16 – Async Tasks for WebClient, SmtpClient, and Ping

Stephen Toub - MSFT
Stephen Toub - MSFT

(The full set of ParallelExtensionsExtras Tour posts is available here.) The Task Parallel Library isn’t just about CPU-bound operations.  The Task class is a great representation for any asynchronous operation, even those implemented purely as asynchronous I/O.Task’s ability to represent arbitrary asynchronous operations without...

.NET Parallel Programming
May 4, 2010
Post comments count0
Post likes count0

ParallelExtensionsExtras Tour – #15 – Specialized Task Waiting

Stephen Toub - MSFT
Stephen Toub - MSFT

(The full set of ParallelExtensionsExtras Tour posts is available here.)The Task Parallel Library provides the Task.Wait method, which synchronously waits for the target Task to complete.  If the Task completed successfully, the method simply returns.  If the Task completed due to an unhandled exception or cancellation, Wait throws an app...

.NET Parallel Programming
May 3, 2010
Post comments count0
Post likes count0

A TPL Sandbox

Danny Shih
Danny Shih

In a previous post, we introduced the UnobservedTaskException event, saying that it would be useful for host-plugin scenarios where a host application should continue to execute in the presence of exceptions thrown by buggy plugins.  A typical example is an Internet browser; should the entire application crash if some rich content plugin crash...

.NET Parallel Programming