
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 http://www.milnou.net/~pfreixes/img/cpu_usage_gil_problem.png 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 :/ 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 ? 2) Exist some PEP or plans for modify this and run multiple thread python for same interpreter at current time ? for python 3000? Thanks and excuse for this break. -- Pau Freixes Linux GNU/User

On Sun, Jun 8, 2008 at 6:15 AM, Pau Freixes <pfreixes@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
http://www.milnou.net/~pfreixes/img/cpu_usage_gil_problem.png
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 http://code.google.com/p/python-threadsafe/, though. -- Cheers, Benjamin Peterson "There's no place like 127.0.0.1."

On Sun, 8 Jun 2008 08:37:20 -0500, Benjamin Peterson <musiccomposition@gmail.com> wrote:
Certainly not in core Python. Have a look http://code.google.com/p/python-threadsafe/, though.
participants (3)
-
Benjamin Peterson
-
Jean-Paul Calderone
-
Pau Freixes