Threading in Python

Ype Kingma ykingma at accessforall.nl
Mon Jul 30 11:34:14 CEST 2001


Aahz Maruch wrote:
> 
> In article <bn787.4044$Me1.99107 at e420r-sjo2.usenetserver.com>,
> Andy <andy at mindgate.net> wrote:
> >
> >There seems to be a lot of (arguably) radical changes going on in the
> >Python syntax/grammar/language, perhaps the direction should be towards
> >improving the internals first?
> >
> >One thing Java has which Python lacks is transparent support for
> >multi-cpu threading.  Python has threads, but I believe it is
> >internally implemented and has been shown not to take advantage of an
> >SMP machine.
> 
> That's about half-true.  For more information, see
> http://starship.python.net/crew/aahz/
> 

(Very nice python threading code.)

> (New & Improved slideshow coming Real Soon Now (a couple or three days))
> --

Meanwhile you can have the best of both worlds: www.jython.org
Some threading features:
- jython  interpreter threads are Java threads,
- java's 'synchronized' is used in the jython interpreter where necessary,
- in other words: fine grained locking is used, there is no 'interpreter lock'.

Regards,
Ype

-- 
email at xs4all.nl



More information about the Python-list mailing list