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:

    Ours is a brand—new world of allatonceness. “Time” has ceased, “space” has vanished. We now live in a global village ... a simultaneous happening.
    Marshall McLuhan (1911–1980)

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

    There warn’t anybody at the church, except maybe a hog or two, for there warn’t any lock on the door, and hogs likes a puncheon floor in summertime because it’s cool. If you notice, most folks don’t go to church only when they’ve got to; but a hog is different.
    Mark Twain [Samuel Langhorne Clemens] (1835–1910)