i have code like this .
import multiprocessing
import time
class Process(multiprocessing.Process):
def __init__(self, id):
super(Process, self).__init__()
self.id = id
def run(self):
time.sleep(1)
print("run "+"."+str(self.id))
can i build n process that run same time and when one of them finish stopping all other processes?