On 08/15/2017 11:41 AM, Haining Yu wrote:
> If two python programs are running in two virtual environments on the
> same machine, are they processed by the same Global Interpreter Lock?
No. The GIL is per-interpreter, thus per-process. Two different Python
processes will each have their own GIL (and thus be able to run
concurrently on different CPU cores), even if they are running from the
So virtualenv is not a workaround for the GIL, it's irrelevant. But
running multiple Python processes is a workaround for the GIL.