Posted By: Daniel Moth | Oct 19th @ 9:14 AM | 25,984 Views | 15 Comments

Author: Hi, I am Daniel Moth Smiley

 

Introduction:

In Visual Studio 2010, the Parallel Computing team has delivered APIs and tools for developers wanting to build applications that take advantage of multiple cores. This video provides a glimpse on the managed APIs, debugging windows and profiler support.

 

For more on the managed APIs, please start on the team's blog. For more on profiler start on that team's blog. For more on Parallel Tasks and Parallel Stacks please start on my blog post on Parallel Debugging.

Rating:
5
0

You mention that Parallel.For utilizes tasks, but always has better performance than tasks. How is this possible?

LukePuplett
LukePuplett
They're my own arms

Seva. You are correct, my apologies. Although the problem with using PF dev team stats is that while they may know that cranking up the other threads takes, say, 2,000 cycles per thread (I've really no idea - could be 20,000), you'd still have to test your task/code to see how much work it is in comparison.

 

Although if the profiler could try P.For and normal For and suggest when you're actually degrading performance, that'd be excellent. That said, I did think that P.For uses some kind of ramping up technology so it ran synchronously for small loads - and thus, what we saw in the video shouldn't happen. P.For is so easy to use but so easy to use in the wrong place.

 

My problem is that most of the code I write I think is too small to be parallelised. Like arrays of 12 items. By the time I've finished I've got a huge chain of little bits of work adding up to a large amount of work, so then I start to look for logic that can run independently of each other and kick off some branch of execution on another thread and re-join/wait further down. The problem being that in the future I won't be able to find enough simultaneous work to spread across all cores!

 

Daniel - thanks, that'd be cool.

Which edition exposes those amazing profiling capabilities?

Hi,

 

juts of curiosity: What is that vercy nice font that you are using in the VS code editor ?

Microsoft Communities