Hi, I’m currently taking the first lesson of the Parallel Processing course in Step 5 of the Data Engineer Path, but I can’t reproduce the results from the lessons.
Here is my code, which is basically the same of the lesson:
def wait(): time.sleep(0.5) print("Done waiting") process = multiprocessing.Process(target=wait) # Add code here process.start() print("Finished") process.join()
I expected jupyter lab to print to screen “Finished” and “Done Waiting”, however the only thing I got was “Finished” as an output.
I looked up in the internet and tried to reproduce the steps from this youtube tutorial, but I faced the same problem.
At this point I tried to change the enviroment from jupyter lab to spyder and again I got the same output.
Could anyone tell me what I’m missing and explain this behaviour ?