[Tutor] Python and the Global Interpreter Lock

2008-08-07 Thread OkaMthembo
Hi there,

I just came across something called the Global Interpreter Lock, and
apparently its a condition where an interpreter locks resources to
avoid sharing them with other apps/ processes on the system? I wish to find
out what this means in terms of Python. for example does it mean
that Python cannot take advantage of multiple CPUs? And does it mean that
only one interpreter will run per box in a hosting environment?

I look forward to enlightenment.

Thanks,

-- 
Lloyd Dube
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python and the Global Interpreter Lock

2008-08-07 Thread bob gailer

OkaMthembo wrote:

Hi there,

I just came across something called the Global Interpreter Lock, and 
apparently its a condition where an interpreter locks resources to
avoid sharing them with other apps/ processes on the system? I wish to 
find out what this means in terms of Python. for example does it mean
that Python cannot take advantage of multiple CPUs? And does it mean 
that only one interpreter will run per box in a hosting environment?


See http://en.wikipedia.org/wiki/Global_Interpreter_Lock.

This only applies to threads within a Python process, not other 
apps/prcoesses.




I look forward to enlightenment.


So do I. Who is your guru?

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor