What are the differences between the threading and multiprocessing modules?
What Giulio Franco says is true for multithreading vs. multiprocessing in general. However, Python* has an added issue: There’s a Global Interpreter Lock that prevents two threads in the same process from running Python code at the same time. This means that if you have 8 cores, and change your code to use 8 threads, … Read more