thread question
Chris Liechti
cliechti at gmx.net
Fri Feb 15 19:52:20 EST 2002
"maximilianscherr" <MaximilianScherr at T-Online.de> wrote in
news:mailman.1013817865.2645.python-list at python.org:
> if a thread (object) is for example a class, would it be possible to
> call the class objects of this thread from another thread?
> or how could something similar be done?
thread live in the same process (same memory) so you can communicate
through variables/attributes/calls etc.
BUT: complex data types have to be protected from simultaneous access
from multiple threads at the same time. that's where threading.Lock
and friends enter the game.
chris
auch noch an einer nachtschicht? :-)
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list