Global Interpreter Lock

Discussion in 'Python' started by Tomas Christiansen, Sep 24, 2004.

  1. 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?

    -------
    Tomas
     
    Tomas Christiansen, Sep 24, 2004
    #1
    1. Advertising

  2. Tomas> Excaclty HOW global is the global interpreter lock?

    Per-process.

    Skip
     
    Skip Montanaro, Sep 24, 2004
    #2
    1. Advertising

  3. 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?

    -------
    Tomas
     
    Tomas Christiansen, Sep 24, 2004
    #3
  4. Tomas Christiansen wrote:

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


    As opposed to any of the other scenarios proposed, yes.
    --
    Michael Hoffman
     
    Michael Hoffman, Sep 24, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Aahz
    Replies:
    0
    Views:
    957
  2. Fuzzyman
    Replies:
    3
    Views:
    507
    Andrew MacIntyre
    Dec 5, 2003
  3. Paul Rubin

    global interpreter lock

    Paul Rubin, Aug 19, 2005, in forum: Python
    Replies:
    59
    Views:
    1,312
    Michael Sparks
    Sep 15, 2005
  4. Replies:
    2
    Views:
    289
  5. Duncan Grisby
    Replies:
    0
    Views:
    290
    Duncan Grisby
    Nov 18, 2005
Loading...

Share This Page