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 brandnew world of allatonceness. Time has ceased, space has vanished. We now live in a global village ... a simultaneous happening.”
—Marshall McLuhan (19111980)
“The best interpreter of the law is custom.”
—Marcus Tullius Cicero (10643 B.C.)
“There warnt anybody at the church, except maybe a hog or two, for there warnt any lock on the door, and hogs likes a puncheon floor in summertime because its cool. If you notice, most folks dont go to church only when theyve got to; but a hog is different.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)