Writing my own synchronization primitive ReaderWriterLock

added by DotNetKicks
12/8/2016 2:25:18 PM

5 Kicks, 253 Views

We need something that has as little cost as possible, allows us to support entering the read lock from one thread while exiting from another and need to handle contention well. Our scenario in this case is producers holding the lock while the generate work, and then a flusher that goes and clean this up while holding the write lock.


0 comments