a questions about thread-safety of boolean variables
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon Oct 5 22:08:59 EDT 2009
En Wed, 30 Sep 2009 06:14:50 -0300, Charlie Dickens
<cdickens123 at gmail.com> escribió:
> What about dictionaries? Reading values, adding new ones and the most
> important: changing an existing value - can it corrupt the state of the
> dictionary or that it is guaranteed that if I try to read the value of
> this
> key, I can only get the old one or the new one, but not something weird
> instead (because a different thread changed the value while this thread
> was
> trying to read it).
See http://effbot.org/zone/thread-synchronization.htm
--
Gabriel Genellina
More information about the Python-list
mailing list