/DistributedLock

Simulated distributed lock using multi-threading

Primary LanguagePython

DistributedLock

Reruirements

  • python2: zmq, json, argparse, subprocess, multiprocessing

Implementation

./start_servers.py

./client.py --cid 1(2, 3)

then input command like 'lock k1 1' or 'unlock k1 1' or 'check k1 1'