MROW Locking

2007-05-06 Thread Prateek
Can anyone direct me to a good resource on how to do MROW Locking efficiently in Python. The recipe at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413393 is actually quite inefficient (not sure if it is the code or MROW itself). I have a dictionary (a cache lets say or some sort of

Multiple-reader-one-writer (MROW) locking -- soliciting improvements

2005-05-05 Thread Matthew Scott
After being introduced to the concept of MROW locking, I sought a general implementation of it in Python that implemented reentrant locks, had a simple interface, and was unit tested. I found some implementations, but none had all three of these qualities, so I wrote this recipe: http