Geeks With Blogs
Brian Biales because blogging is just the easiest way to remember things June 2009 Entries
lock, SyncLock, and the Monitor class – ensuring “single thread” access to resources in a multithreaded application
I was speaking with a colleague earlier today about a potential threading issue in his code. I suggested serializing access to his object to ensure two threads are not using it at the same time, as that could corrupt the processing. Being a relative “old-timer” who’s largest mutithreading applications were written in Visual C++ v 5 and 6, I remember heavy use of the CriticalSection, and wrapping the lock/unlock of critical sections in a class to ensure that every lock eventually got unlocked. We ......

Posted On Friday, June 19, 2009 6:39 PM

Copyright © Brian Biales | Powered by: