Asynchronous mechanisms

In this post we will explore the different mechanisms of asynchronous programming. For more topics on asynchronous programming see the overview. Mechanisms of asynchronous programming For asynchronous programming there are three possible mechanisms. These are the use of: Multiple machines Multiple processes Multiple threads in a single process 1. Multiple Read more…

Concurrent Data Structures

In this post we are going to look at concurrent data structures, why they are helpful for synchronization purposes and which basic data structures TPL does provide you as an application developer. What this post will cover Why one needs concurrent data structures Which data structures does TPL offer Concurrent Read more…

Immutable shared state object

In the post about Basic thread safety in .Net we looked at techniques to avoid state corruption in asynchronous code. In this post I will briefly show how you can utilize an Immutable state object for a very brief lock so you can access immutable data to ease your synchronization of your Read more…

Interlocked and Atomicity

In the basic thread safety post we looked shortly at atomicity. In this post we want to look at how we can convert simple non atomic operations to atomic operations in the sense of a thread safe processor instruction. The key to do this in .Net is the static Interlocked Read more…