In my class, I run 4 processes.
from multiprocessing import Process procs = ( Process(target=ClassOne, name='ClassOne'), Process(target=ClassTwo, name='ClassTwo'), Process(target=ClassThree, name='ClassThree'), Process(target=ClassFour, name='ClassFour'), ) for p in procs: p.daemon = False p.start()
I would like to be notified when one of my children dies, so I can kill the other and myself.
python synchronization process multiprocessing ipc
Spì
source share