Samples for Parallel Programming with the .NET Framework 4
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 the n-queens problem, fractal image generators, and more. The samples include code written to use Parallel Extensions from C#, Visual Basic, F#, and C++/CLI. They include examples of using the Task Parallel Library, PLINQ, new coordination data structures, and even databinding a WPF UI to a collection that has data stored into it from a background thread.
On top of all of this, the samples include a project called “Parallel Extensions Extras”, which features a healthy portion of extension methods for .NET 4 types, new data structures to augment what’s being shipped in .NET 4, custom schedulers for TPL, and lots of other goodness. Definitely worth a perusal.