import threading
mutex = threading.RLock()
try:
mutex.acquire()
print("hello world")
except Exception as e:
pass
finally:
mutex.release()
import threading
mutex = threading.RLock()
try:
mutex.acquire()
print("hello world")
except Exception as e:
pass
finally:
mutex.release()