Jython, GILs and object locking.

Neil Hodgson nhodgson at bigpond.net.au
Fri Oct 10 18:31:28 EDT 2003


Jon Franz:

> I see a big gaping hole in your list of reasons for needing threads.
> Big, I/O bound network servers can benefit greatly from
> threads on multiple CPUs.

   Python supports this. By having the I/O operations release the GIL
multiple CPUs may perform work simultaneously.

> 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.

   Neil






More information about the Python-list mailing list