DCSIMG
Parallelism in Visual Studio 2010: Demos Updated to Beta 2 - All Your Base Are Belong To Us

All Your Base Are Belong To Us

Mostly .NET internals and other kinds of gory details

Parallelism in Visual Studio 2010: Demos Updated to Beta 2

As you probably know, Visual Studio 2010 has reached the Beta 2 milestone, with a go-live license available to start coding your production applications using this release.

There have been some minor changes around the System.Threading.Tasks namespace and classes, with the most significant change being around the cancellation model for tasks. Instead of explicitly reaching out for a Task object and then calling its Cancel method (which has been removed, along with the static Task.Current property), cancellation now requires a CancellationTokenSource object to be created, its Token property should be passed to the methods that create a task, and then its Cancel method can be used to cancel the task hierarchy using that cancellation token.

There’s more information about these changes on the Parallel FX team blog.

A few weeks ago I posted slides and code for parallelism demos in Visual Studio 2010. I now updated these demos to work on Beta 2, and you can download them as usual. (The only changes have been around the new cancellation model and the removal of the ConcurrentLinkedList<T> collection.)

Comments

Josh said:

If i have only one processor in my computer,

How i can increase the number of the tasks(or threads)? it seems that in this case all the examples run more or less the same as i run w/o parallel.

Thanks

# November 11, 2009 12:19 AM

Josh said:

Hi,

If I have only one processor in my computer,

can I increase the numbers of tasks/threads with one processor? because it seems that in my situation, there are no different when I run it in parallel

Thanks!

# November 11, 2009 8:32 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: