Jython, GILs and object locking.
jfranz at neurokode.com
Sat Oct 11 03:15:41 CEST 2003
> Python supports this. By having the I/O operations release the GIL
> multiple CPUs may perform work simultaneously.
You mean an extension in which you hand off the I/O from your
python program to a (c) module that handles the work in a truely
seperate thread? Writing a c extension should not be required
to use multiple CPUs. If I am wrong, and python _can_ use
multiple cpus without using such an extension, please let me know.
> > I think, however, that until (IF) the GIL is removed, a
> > simple documentation change could be very useful. That
> > is, in the thread module docs, and the tutorials (and
> > anyplace that mentions threading) mention that python, due to
> > the GIL, cannot use multiple processors.
> That would be inaccurate. The Python documents should be accurate.
See the above. The python documentation should be accurate for
programming with python, not what you can do if you write an
Are there such modules freely in existence?
More information about the Python-list