More than one interpreter per process?

Michael L Torrie torriem at chem.byu.edu
Mon Dec 17 23:46:36 EST 2007


sturlamolden wrote:
> Python has a GIL that impairs scalability on computers with more than
> one processor. The problem seems to be that there is only one GIL per
> process. Solutions to removing the GIL has always stranded on the need
> for 'fine grained locking' on reference counts. I believe there is a
> second way, which has been overlooked: Having one GIL per interpreter
> instead of one GIL per process.

How would this handle python resources that a programmer would want to
share among the threads?  What facilities for IPC between the
interpreters would be used?




More information about the Python-list mailing list