We use the new Asynchronous Agents Library in Visual C++ 2010 to solve the classic Dining Philosophers concurrency problem.
MSDN Magazine June 2009
View Complete Post
Jeff Richter uses the AsyncResult class to implement the CLR's Asynchronous Programming Model to perform hardware device operations asynchronously.
MSDN Magazine June 2007
MSDN Magazine March 2007
Multicore processors are now ubiquitous on mainstream desktop computers, but applications that use their full potential are still difficult to write. Version 4 of the .NET Framework will deliver several tools that programmers can employ to make this task easier. This article explores the use of one of those tools: Parallel LINQ (PLINQ).
MSDN Magazine December 2009
This article describes how to integrate the new parallel computing libraries in the Visual Studio 2010 Beta into existing C++ projects. Based on four common scenarios, the column explains a few of the ways developers can use the APIs and classes that are part of the Parallel Pattern Library (PPL), Asynchronous Agents Library, and Concurrency Runtime.
MSDN Magazine October 2009
Jeffrey Richter shows you some additional cool features of his AsyncEnumerator class.
MSDN Magazine August 2008
Here Jeffrey Richter introduces his AsyncEnumerator class, which drives an iterator so that different thread pool threads can execute the same code at different times.
MSDN Magazine June 2008
Jeffrey Richter introduces his AsyncEnumerator class and explains how it harnesses some recent additions to the C# programming language that make working with the asynchronous programming model significantly easier.
MSDN Magazine November 2007
MSDN Magazine November 2006
What can a robot-programming toolkit do for you? Read on and find out.
MSDN Magazine September 2006
If multiple threads concurrently execute code that writes to or modifies a resource, then obviously the resource must be protected with a thread synchronization lock to ensure that the resource doesn't get corrupted.
MSDN Magazine June 2006
In my last column, I showed the various thread synchronization mechanisms employed by the MicrosoftÃÂ® . NET Framework (see Concurrent Affairs: Performance-Conscious Thread Synchronization). I then examined the performance characteristics of all these mechanisms and determined that the Interlocked methods performed the best because the calling thread never has to transition to kernel mode.
MSDN Magazine March 2006
In my career, I have architected and implemented many thread synchronization techniques. This has provided me with a lot of experience that has shaped the way I now think about thread synchronization problems.
MSDN Magazine October 2005
One of the key ingredients to software development is problem solving. Knowing all the technology buzzwords is great, but if you don't have problem solving skills it is a waste. Solving these problems is also what makes software development fun. At a recent Maker Faire, Adam Savage of MythBusters fame gave a great presentation on Problem Solving. It is an excellent view. He also mixes in some "behind the scenes" stories about his MythBuster experience as an added bonus.
I want to canceling an asynchronous method.
How can me it?
public IAsyncResult BeginGetAllUsersCount(object sender, EventArgs args, AsyncCallback callback, object state)
//Canceling asynchronous operation
public void EndGetAllUsersCount(IAsyncResult asyncResult)
_totalRowsCount = AdapterUser.EndGetAllUsersCount(asyncResult);