Threads - Newbie Questions
Aahz Maruch
aahz at panix.com
Wed Dec 20 14:56:03 EST 2000
In article <3A410BB1.AAB6BE3C at NONOraqiaMAPS.com>,
David Lees <DavidL at NONOraqiaMAPS.com> wrote:
>
>I am now starting to play with Python threads. Could someone refer me
>to documentation other than the Library reference for some simple
>examples?
http://starship.python.net/crew/aahz/
>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
threading.py for some source code examples of constructing higher-level
locking objects.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
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