Showing results for 2013 - .NET Parallel Programming

Apr 4, 2013
0
1

.NET memory allocation profiling and Tasks

Stephen Toub - MSFT
Stephen Toub - MSFT

The .NET Framework blog published this morning a guest post from yours truly on .NET Memory Allocation Profiling with Visual Studio 2012.  As you're trying to improve the performance, throughput, and memory usage of code that uses Tasks, the described profiler in Visual Studio can be a valuable tool in your tool belt (of course, the example I ...

.NET 4.5Visual Studio
Apr 3, 2013
4
1

Tasks, Monads, and LINQ

Stephen Toub - MSFT
Stephen Toub - MSFT

A few years back, Wes Dyer wrote a great post on monads, and more recently, Eric Lippert wrote a terrific blog series exploring monads and C#. In that series, Eric alluded to Task<TResult> several times, so I thought I’d share a few related thoughts on Task<TResult> and the async/await keywords.As both Wes and Eric highlight, a mo...

Parallel ExtensionsTask Parallel Library.NET 4.5
Mar 13, 2013
0
2

“Invoke the method with await”… ugh!

Stephen Toub - MSFT
Stephen Toub - MSFT

I can be a bit sensitive when it comes to language and how concepts are conveyed.  I think it’s important to be accurate, even if not precise, when describing what something is or how to use it, as otherwise the folks to whom you’re communicating can easily form the wrong mental model for that thing.  Having a good mental mode...

Parallel ExtensionsTask Parallel Library.NET 4.5
Feb 20, 2013
1
0

MVP Summit presentation on async

Stephen Toub - MSFT
Stephen Toub - MSFT

Lucian Wischik and I presented an "async clinic" at the MVP Summit in Bellevue this week.  The async/await keywords in C# and Visual Basic drastically simplify asynchronous programming, but that of course doesn't mean that using them is without any gotchas: the goal of the discussion was to highlight some of the key areas in which&nb...

Parallel ExtensionsTask Parallel Library.NET 4.5
Jan 28, 2013
0
0

Psychic Debugging of Async Methods

Stephen Toub - MSFT
Stephen Toub - MSFT

These days it’s not uncommon for me to receive an email or read a forum post from someone concerned about a problem they’re experiencing with an async method they’ve written, and they’re seeking help debugging the issue.  Sometimes plenty of information about the bug is conveyed, but other times the communication is voi...

Parallel ExtensionsTask Parallel Library.NET 4.5
Jan 13, 2013
0
2

Cooperatively pausing async methods

Stephen Toub - MSFT
Stephen Toub - MSFT

Recently I was writing an app that processed a bunch of files asynchronously.  As with the Windows copy file dialog, I wanted to be able to provide the user with a button that would pause the processing operation.To achieve that, I implemented a simple mechanism that would allow me to pass a “pause token” into the async method, whi...

Parallel ExtensionsTask Parallel Library.NET 4.5