En Wed, 30 Sep 2009 06:14:50 -0300, Charlie Dickens
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 o
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 (
Hi,
On 09/30/2009 01:53 PM, Charlie Dickens wrote:
Hi,
if I have a class A that contains a boolean variable named x, is it safe
to read and change it from different threads without using locks?
Is it guaranteed that A.x will be always True or False, and not any
other weird value that that causes
Hi,if I have a class A that contains a boolean variable named x, is it safe
to read and change it from different threads without using locks?
Is it guaranteed that A.x will be always True or False, and not any other
weird value that that causes it to be inconsistent (assuming I only set it
to True