PreviousNext

Exploiting the ConcurrentDictionary in Asynchronous Applications

by bill-s, 2016-04-23T08:13:40.000Z

In an earlier column I introduced the ConcurrentDictionary object, which allows you to share data between asynchronous processes. In that column, I showed how to use the basic TryAdd and TryGetValue methods. Those methods work well, provided you have a simple application with one process adding or removing items and all other processes reading items in the dictionary (the producer/consumers pattern).

Read More