asteroza + threading   12

IanG on Tap: Oh No! Not the TimedLock Again!
Normal C# Lock can deadlock, so this is a trick to timeout the lock, utilizing the actual underlying code behind Lock.
C#  locking  lock  locks  threading  multithreading  thread  contention  timeout  code  sample  programming  development  Delicious 
may 2009 by asteroza
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:



description:


tags: