asteroza + readerwriterlock   2

IanG on Tap: ReaderWriterLock vs Monitor
So MSDN says DataTable is multithreaded read safe. But that seems to be only true if you are grabbing a specific row object, and not doing a LINQ select. C# seems to update its index cache on such an access. But the act of (re)building an index cache counts as a write. That's correct folks, one of only two multithread safe read classes isn't actually fully threadsafe. You bastards...
C#  datatable  readerwriterlock  monitor  threading  multithreading  locking  programming  development  threads  Delicious 
may 2009 by asteroza

Copy this bookmark: