Global Interpreter Lock

T

Tomas Christiansen

Excaclty HOW global is the global interpreter lock?

I know that it isn't global in the meaning "the hole world" (imagine that!),
but is it global only to each task/job/python interpreter instance (running
one or more threads) or is it global to the user or the computer or...?

In other words, what is the impact of the global interpreter lock if...
1. If user A has two different python programs running?
2. If user A is running a python program and user B is running one as well?
3. Does the OS (Linux or Windows) make a difference to the impact of the
global interpreter lock?
 
S

Skip Montanaro

Tomas> Excaclty HOW global is the global interpreter lock?

Per-process.

Skip
 
T

Tomas Christiansen

Skip Montanaro wrote
Tomas> Excaclty HOW global is the global interpreter lock?

Per-process.

So ONLY (multiple) threads are affected by the global interpreter lock?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top