from multiprocessing import Process
def square(x=2):
for i in range(10000000):
pass
print(x**2)
procs=[]
for i in range(5):
procs.append(Process(target=square))
for proc in procs:
proc.start()
for proc in procs:
proc.join()
what is the use of
for proc in procs:
proc.join()
in the above code? it gives the same output with and without that line