ConcurrentDictionary over List 3
11/15/2018
Doing it one way
In the previous post, I have shown why the following type can be dangerous:
ConcurrentDictionary<string, List>
The problem starts when we have multiple threads using (writing and reading) this dictionary at the same time. To avoid state corruption, we need to control this access by making it thread-safe.