Stackless Platform Independence?
Skip Montanaro
skip at pobox.com
Sun Mar 3 20:04:49 EST 2002
Frederic> Just reverse the paradigm: have the python VM run in a single
Frederic> thread, using stackless microthreads for python
Frederic> multithreading, and run the C calls in a pool of threads.
Frederic> This way: no lock is needed, since only one thread runs the
Frederic> VM, with the help of microthreads, and C calls run in other
Frederic> threads.
I don't think this will work without a lot of effort. There is code that is
not strictly speaking part of the virtual machine that assumes the presence
of the global interpreter lock.
--
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)
More information about the Python-list
mailing list