Threads - Newbie Questions

Aahz Maruch aahz at
Wed Dec 20 20:56:03 CET 2000

In article <3A410BB1.AAB6BE3C at>,
David Lees  <DavidL at> wrote:
>I am now starting to play with Python threads.  Could someone refer me
>to documentation other than the Library reference for some simple

>My specific questions are:
>1. I am passing the lock as an argument to each thread.  Is this the
>proper way to do it?

More or less, though you may need more than one lock.  Take a look at for some source code examples of constructing higher-level
locking objects.
                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

I don't really mind a person having the last whine, but I do mind
someone else having the last self-righteous whine.  --Aahz

More information about the Python-list mailing list