How a process release a redis lock which was not owned by this process?
I tried to implement a simple read-preferred read-write lock using 2 mutexes (using redis.lock.Lock), like what is described in this link (https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock) In the [End Read] steps, I encountered this problem: If b = 0, unlock g #(a write lock).…