Saturday, 20 February 2010

All About .NET Threading Synchronization

It's all about concurrency and multi-threading synchronization management and this is a great overview:

1. Locking

2. Signaling

What are WaitHandles?

"Event wait handles allow threads to synchronize activities by signaling each other and by waiting on each other's signals. These synchronization events are based on Win32 wait handles and can be divided into two types: those that reset automatically when signaled and those that are reset manually."

.NET WaitHandles:
  • ManualResetEvent
  • AutoResetEvent
  • EventWaitHandle
  • Mutex
  • Semaphore
ManualResetEvent and AutoResetEvent:

3. Interlocked Operations

No comments: