Skip to content

Redis based Reader-Writer lock with Writer's priority

License

Notifications You must be signed in to change notification settings

swapnilsm/redis-rw-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version CircleCI Read the Docs

Inspired by Mateusz Kobos's solution

The library implements a reader-writer lock to use in the second readers-writers problem with distributed python environment. In this problem, many readers can simultaneously access a share, and a writer has an exclusive access to this share. Additionally, the following constraints should be met:

  • No reader should be kept waiting if the share is currently opened for reading unless a writer is also waiting for the share
  • No writer should be kept waiting for the share longer than absolutely necessary.

About

Redis based Reader-Writer lock with Writer's priority

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages