C# Monitor,Busy Wait,True Wait & SpinLock
Aug 21st, 2010 | By sankarsan | Category: Programming & LanguagesIn my last two posts I had discussed about thread synchronization,critical sections and System.Threading.Monitor class.What we have seen is, a critical section in the code where thread synchronization is required is protected by a lock.When a thread encounters a critical section it tries to acquire the lock,if successful it executes the code or else waits [...]