Reputation: 97
What does python interpreter do when you use Process or Pool to achieve multiprocessing. Are all the codes and global variables created copied to the child process?
Upvotes: 1
Views: 464
Reputation: 15040
It depends on the Operating System and on the start method you choose.
You can find a description of start methods in the multiprocessing documentation.
Unix Operating Systems generally support all three methods whereas NT Operating Systems (Windows) only support the spawn
method.
Upvotes: 1