Welcome to

Magenic Technologies Community Blog

Sign in | Join | Help

Browse by Tags

All Tags » Parallel Extensions to the .NET Framework   (RSS)

Twin Cities Code Camp Session Slides and Code Posted

I presented a talk entitled A Tour of the Parallel Extensions to the .NET Framework last Sat Apr 05 2008 at the Twin Cities Code Camp . The talk went well and I presented for about 70 minutes. Thanks to all who attended. My slide deck and code samples

Another Case for the Declarative Programming Model

Stephen Toub has written a blog post on the Parallel Programming with .NET blog reflecting his experiences in presenting the Parallel Extensions to conference attendees. The first question he fielded, and the one I run across quite often, is this: "

Parallel For Loops with Thread Local State

A recent MSDN post contained the following code: string[] entropy_array = { "e", "r", "t", "y", "u", "ı", "o", "p", "ğ", "ü", "a", "s",

Parallel.ForEach Sample: Fibonacci Numbers

A post on the MSDN Forums recently asked for a sample illustrating the use of Parallel.ForEach() , so I decided to build up a small Fibonacci number calculation sample over my lunch hour. Here it is: class Program { //---------------------------------------------------------------------

Dual-Threaded TaskManager on a Single Core

I just ran the following code on a single core machine: static void Main(string[] args) { Task Task1; Task Task2; Action<object> MainAction; TaskManagerPolicy CurrentPolicy; MainAction = ActionMethod; CurrentPolicy = new TaskManagerPolicy(2, 2);

Aggregated Exceptions

Running code in parallel raises the possibility that more than one exception may be thrown, in parallel, from a single body of code. This means that code written to use the Parallel Extensions needs to account for that possibility. Consider the following

PFX Dec 2007 CTP: Executing Tasks Sequentially

An MSDN forum post from a couple of months ago (OK, so I am slow) asked if it was possible to schedule a task for execution after a previous task executed. Stephen Toub noted that handling the Completed event on a Task object would be the key to making

Twin Cities Code Camp: Spring 2008

I wanted to put out an advertisement for the Spring 2008 session of the Twin Cities Code Camp. You can go here for a list of sessions. I will be speaking about the Parallel Extensions to the .NET Framework, and many other excellent sessions are planned