[Python-3000] the future of the GIL (original) (raw)

Guido van Rossum guido at python.org
Tue May 8 19:09:46 CEST 2007


On 5/8/07, Thomas Heller <theller at ctypes.org> wrote:

Wouldn't multiple interpreters (assuming the problems with them would be fixed) in the same process give the same benefit? A separate GIL for each one?

No; numerous read-only and immutable objects (e.g. the small integers, 1-character strings, the empty tuple; and all built-in type objects) are shared between all interpreters. Also, extensions can easily share state between interpreters I believe.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list