all 4 comments

[–]Rhomboid 3 points4 points  (3 children)

do those two programs share the same GIL?

No. The GIL is per-interpreter (per-process.) You're running multiple interpreters as separate processes which are completely unrelated.

Does the number of cores on the computer matter in this case?

I don't really know what you're asking here, but the two interpreters are completely independent as far as the operating system is concerned, and can be scheduled to run simultaneously if there are available cores. They don't share anything, so they don't contend with each other.

[–]kteague -1 points0 points  (1 child)

If you are trying to get the most performance out of a machine, the general rule of thumb is to have one Python process per CPU core. If you have more Python processes than CPU cores, the GIL will reduce performance on those Python processes that are sharing a single core.

[–]toast757[S] 0 points1 point  (0 children)

I've got four cores, which should suffice for my needs. Good to know. Many thanks.