Global Interpreter Lock

A Global Interpreter Lock (GIL) is a mutual exclusion lock held by a programming language interpreter thread to avoid sharing code that is not thread-safe with other threads. In languages with a GIL, there is always one GIL for each interpreter process. CPython and CRuby use GILs.

Applications written in programming languages with a GIL can be designed to use separate processes to achieve full parallelism, as each process has its own interpreter and in turn has its own GIL. Otherwise, the GIL can be a significant barrier to parallelism—a price paid for having the dynamism of the language.

Read more about Global Interpreter Lock:  Benefits and Drawbacks, Examples

Famous quotes containing the words global, interpreter and/or lock:

    “Much of what Mr. Wallace calls his global thinking is, no matter how you slice it, still “globaloney.” Mr. Wallace’s warp of sense and his woof of nonsense is very tricky cloth out of which to cut the pattern of a post-war world.”
    —Clare Boothe Luce (1903–1987)

    “The best interpreter of the law is custom.”
    —Marcus Tullius Cicero (106–43 B.C.)

    “Frankly, it’s good enough to lock up in a drawer.”
    —Molière [Jean Baptiste Poquelin] (1622–1673)