.NET List Thread-Safe Implementation Suggestion needed
- by Bamboo
.Net List class isn't thread safe. I hope to achieve the minimal lock needed and yet still fulfilling the requirement such that as for reading, phantom record is allowed, and for writing, they must be thread-safe so there won't be any lost updates.
So I have something like
public static List<string> list = new List<string>();
In…