Multiprocessing

Here I am trying to execute the processes but I am not getting the output even after executing process.start() command. I think that all the processes are running in the background but despite decreasing the range I am getting no result.

Kindly guide.

Try running it in the same same cell instead of different cells.

I tried working within a single cell but still it is not producing any output.

Your code is absolutely correct , this is something issues or problem in both jupyter notebook and windows.
Kindly have a look at the below links to understand this problem better and how to resolve it.

  1. https://stackoverflow.com/questions/23641475/multiprocessing-working-in-python-but-not-in-ipython/23641560#23641560
  2. https://stackoverflow.com/questions/20222534/python-multiprocessing-on-windows-if-name-main

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.