[Python-Dev] GIL cpu usage problem, confirm me
musiccomposition at gmail.com
Sun Jun 8 15:37:20 CEST 2008
On Sun, Jun 8, 2008 at 6:15 AM, Pau Freixes <pfreixes at gmail.com> wrote:
> Hi List,
> Surly this is a recurring theme into python dev world, but I need your help
> for confirm if the follow image it's really
> I'm writing a brief article for my blog and I need to make sure about the
> current problem with GIL and multi core environments, this picture try to
> explain with images the problem for scheduling multiple threads running
> python code of same interpreter into multiple cpu cores. Can anyone confirm
> to me this picture ?
> And if it's possible answer this two questions I will be happy :/
Next time, comp.lang.python would be the place to ask these questions.
> 1) When this situation it's produced into one core environment whats happens
> when thread library or os switch context into other python thread and this
> don't have a GIL ?
They run together.
> 2) Exist some PEP or plans for modify this and run multiple thread python
> for same interpreter at current time ? for python 3000?
Certainly not in core Python. Have a look
"There's no place like 127.0.0.1."
More information about the Python-Dev