Showing results for .NET 4 - .NET Blog

May 27, 2009
Post comments count0
Post likes count1

Exiting from Parallel Loops Early

Stephen Toub - MSFT
Stephen Toub - MSFT

Exiting out of loops early is a fairly common pattern, one that doesn’t go away when parallelism is introduced.  To help simplify these use cases, the Parallel.For and Parallel.ForEach methods support several mechanisms for breaking out of loops early, each of which has different behaviors and targets different requirements.ExceptionsIn ...

.NET Parallel Programming
May 26, 2009
Post comments count0
Post likes count1

Does Parallel.For use one Task per iteration?

Stephen Toub - MSFT
Stephen Toub - MSFT

In .NET 4, the new Parallel class provides For, ForEach, and Invoke methods for performing operations in parallel. One mental model that some folks use when thinking about Parallel.For is that it’s equivalent to running one System.Threading.Tasks.Task per iteration, e.g. that a loop like: Parallel.For(0, N, i => {   &n...

.NET Parallel Programming
May 22, 2009
Post comments count0
Post likes count0

.NET 4 Cancellation Framework

Mike Liddell
Mike Liddell

A very interesting addition to .NET 4 is a set of new types that specifically assist with building cancellation-aware applications and libraries. The new types enable rich scenarios for convenient and safe cancellation, and help simplify situations that used to be be difficult and error-prone and non-composable. The details of the new types are des...

.NET Parallel Programming
May 20, 2009
Post comments count2
Post likes count0

Samples for Parallel Programming with the .NET Framework 4

Stephen Toub - MSFT
Stephen Toub - MSFT

Along with the release of the .NET Framework 4 Beta 1, we've just published a slew of samples that demonstrate using Parallel Extensions in a variety of ways.  You can download these from Code Gallery at https://code.msdn.microsoft.com/ParExtSamples.These samples include raytracers, a sudoku game, an image colorization algorithm, solvers for t...

.NET Parallel Programming
May 20, 2009
Post comments count0
Post likes count0

.NET 4 MSDN documentation for parallelism

Stephen Toub - MSFT
Stephen Toub - MSFT

In addition to the Betas of Visual Studio 2010 and the .NET Framework 4 being available for download today, the MSDN documentation for .NET 4 Beta 1 is also available.  This includes quite a bit of useful information about the new parallelism constructs.  Here's a summary of the relevant material, with links: Related to this...

.NET Parallel Programming
May 20, 2009
Post comments count0
Post likes count0

.NET 4 Beta 1 is now available, with parallelism!

Stephen Toub - MSFT
Stephen Toub - MSFT

We’re very excited that the .NET Framework 4 Beta is now available for public download, as .NET 4 has Parallel Extensions built into its core. You can download the Betas for Visual Studio 2010 and .NET Framework 4 at https://msdn.microsoft.com/en-us/netframework/dd582936.aspx.For more information on what’s new in Beta 1 regarding concur...

.NET Parallel Programming
May 16, 2009
Post comments count0
Post likes count0

Debugging Support for Tasks

Daniel Moth
Daniel Moth

Visual Studio 2010 has new debugger windows to support the Task-based programming model. Check out my blog post about the Parallel Tasks window.

.NET Parallel Programming
Feb 19, 2009
Post comments count0
Post likes count0

Getting random numbers in a thread-safe way

Stephen Toub - MSFT
Stephen Toub - MSFT

It’s very common in a parallel application to need random numbers for this or that operation.  For situations where random numbers don’t need to be cryptographically-strong, the System.Random class is typically a fast-enough mechanism for generating values that are good-enough.  However, effectively utilizing Random in a paral...

.NET Parallel Programming
Feb 12, 2009
Post comments count0
Post likes count0

“Session-in-a-box” on Parallel Programming with .NET 4.0

Stephen Toub - MSFT
Stephen Toub - MSFT

At PDC 2008 and TechEd EMEA 2008, Daniel Moth delivered several hit talks on parallel programming with the .NET Framework 4.0.  The videos of both of those talks are available online, and he’s since created a series of blog posts capturing the content from those sessions in a way that should make it easy for others to re-present the cont...

.NET Parallel Programming
Nov 18, 2008
Post comments count0
Post likes count0

Parallelism Videos Galore

Stephen Toub - MSFT
Stephen Toub - MSFT

It's been a hectic and exciting few weeks, and we on the Parallel Computing Platform team have been having a great time talking with customers all over the world, at the PDC, at TechEd EMEA, at DevConnections, through Channel 9, and more.  A lot of the resulting material is now available online for viewing, so do check it out if you're interes...

.NET Parallel Programming