Archive for March 9th, 2010

A TimedLock

By Liang Zhang - Last updated: Tuesday, March 9, 2010

The original article is from here Because the nice-looking .Net lock keyword is translated with try{Monitor.Enter(obj);}finally{Monitor.Exit(obj)}, there is no timeout for Monitor.Enter, that may make it easier to cause some deadlock issues. That’s why Ian Griffiths invented his new lock. He and some other guys discussed a lot about how to improve the lock both [...]