import threading
algo = 0
rlock = threading.RLock()
rlock.acquire()
algo += 1
algo += 2
rlock.release()
print(algo)
Powered by Informatica FP.