Python Multiprocessing

https://medium.com/python-experiments/parallelising-in-python-mutithreading-and-mutiprocessing-with-practical-templates-c81d593c1c49

It seems that in Python, Multiprocessing does a lot better than Multithreading.

https://medium.datadriveninvestor.com/python-multiprocessing-pool-vs-process-comparative-analysis-6c03c5b54eec

In Python’s multiprocessing module, there are different methods to start new processes:

  1. ‘fork’: This is the default method on Unix. It forks the parent process, resulting in a new process that is an exact copy of the parent.
  2. ‘spawn’: This method starts a fresh Python interpreter process, which is safer in terms of avoiding certain issues related to shared state but can be slower.
  3. ‘forkserver’: This method starts a server process which forks new processes. It’s similar to ‘fork’ but can be more secure.