from multiprocessing import Manager

manager = Manager()

cond = manager.Condition()

cond.acquire()
cond.wait()

# ... manipulate data ...

cond.release()

# in another process

cond.acquire()

# ... manipulate data ...

cond.notify()
cond.release()

19139510d121f4d51c86005c4cb6e92c6c26bdb9
<mask token>

<mask token>
cond.acquire()
cond.wait()
cond.release()
cond.acquire()
cond.notify()
cond.release()

<mask token>
manager = Manager()
cond = manager.Condition()
cond.acquire()
cond.wait()
cond.release()
cond.acquire()
cond.notify()
cond.release()

from multiprocessing import Manager
manager = Manager()
cond = manager.Condition()
cond.acquire()
cond.wait()
cond.release()
cond.acquire()
cond.notify()
cond.release()

from multiprocessing import Manager

manager = Manager()

cond = manager.Condition()

cond.acquire()
cond.wait()

# ... manipulate data ...

cond.release()

# in another process

cond.acquire()

# ... manipulate data ...

cond.notify()
cond.release()
