[Python-Dev] GIL cpu usage problem, confirm me

Pau Freixes pfreixes at gmail.com
Sun Jun 8 13:15:08 CEST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080608/67676ef5/attachment.htm>


More information about the Python-Dev mailing list