Most viewed Python recipes tagged "meta:requires=exc_string"http://code.activestate.com/recipes/langs/python/tags/meta:requires=exc_string/views/2005-12-20T21:56:24-08:00ActiveState Code RecipesShared lock (aka reader-writer lock) with timeouts and FIFO ordering (Python)
2005-12-20T21:56:24-08:00Dmitry Dvoinikovhttp://code.activestate.com/recipes/users/2475216/http://code.activestate.com/recipes/465156-shared-lock-aka-reader-writer-lock-with-timeouts-a/
<p style="color: grey">
Python
recipe 465156
by <a href="/recipes/users/2475216/">Dmitry Dvoinikov</a>
(<a href="/recipes/tags/threads/">threads</a>).
</p>
<p>This shared lock implementation supports timeouts so that an attempt to acquire a lock occasionally times out. It also preserves FIFO ordering for threads waiting for exclusive lock and has other valuable features.</p>