Python threads

André Larsen Risnes andrer at
Tue Nov 7 14:39:40 CET 2000

ADSL wrote:
> Hi all,
> I'm looking for a decent tutorial the threading module, or at least
> some piece of code on the subject, any hint?

The threading module has objects that can be used much like those in
Java.lang.thread, so if you are familiar with threading in java the 
transition should be easy. Also there are lots of tutorials/books on
using threads with java. Of course, python has no synchronized keyword,
but the threading.Lock object can be used for synchronization instead.
(just remember to match acquire()'s and release()'s :-) )

Best Regards
André Risnes

More information about the Python-list mailing list