Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Concurrency   (RSS)

.NET Matters: Stream Pipeline

My latest .NET Matters column in MSDN Magazine is now available online . In it, I discuss one approach to implementing a BlockingStream and using it to implement a StreamPipeline class.
Posted by toub | 8 Comments

Parallel Extensions CTP!

For those of you who haven't heard, we released a CTP of the Parallel Extensions to the .NET Framework. You can download it here , and you can learn more about it in the new Parallel Computing dev center on MSDN, as well as from the Parallel Extensions
Posted by toub | 1 Comments
Filed under: ,

.NET Matters: Deadlock Monitor

My latest .NET Matters in MSDN Magazine is now online here . In it, I discuss what deadlocks are and ways to detect them when using monitors.
Posted by toub | 3 Comments

Handling window messages in console apps

If you've ever wondered how to handle window messages in .NET console applications, check out my latest .NET Matters column in the June 2007 issue of MSDN Magazine , which just went online an hour or so ago.
Posted by toub | 1 Comments

Slides and code from DevConnections talks

Several folks have asked me for my slides and code samples from both talks I gave at Visual Studio Connections last week. You can find them here: http://www.devconnections.com/updates/LasVegasFall_06/VS_Connections/Toub_VGN305_VSConnections_Fall2006.zip
Posted by toub | 0 Comments
Filed under: ,

Bounded blocking queues

In my last post , I took a look at implementing blocking queues in .NET using semaphores (both System.Threading.Semaphore and a managed semaphore implementation). I defined a blocking queue as one that blocked on a dequeue operation until an item could
Posted by toub | 3 Comments
Filed under: ,

Blocking queues

In many concurrent systems, one thread performs some work, the result of which another thread consumes. This producer/consumer pattern is frequently implemented on top of blocking queues. If you examine the behavior of System.Collections.Queue and System.Collections.Generic.Queue<T>,
Posted by toub | 14 Comments
Filed under: ,

Randomness bugs

Some of the hardest bugs to discover are those involved in features that contain intentionally random behavior. Sudoku was originally written using System.Random as its source of randomness. As is described in the article about its development, this randomness
Posted by toub | 4 Comments
Filed under: , ,

When (a+b)+c != a+(b+c)...

In a discussion of C# this weekend, someone said (a+(b+c)) is the same as ((a+b)+c) when a,b,c are all primitive data types, like int, float, double, etc. In pure math, sure. In code, not necessarily. First consider System.Int32 and the following example
Posted by toub | 6 Comments
Filed under: ,
 
Page view tracker