Let's assume that the string field Name has the value `Mr. Smith` and we 
change this to  `Mr. Anderson` in the goroutine, what are the possible 
values that i could bet on a read?
If these are either `Mr. Smith` or `Mr. Anderson` i am very ok with that 
because i want the value to be eventually consistent. If there is another 
possible outcome then i need to synchronize the access and refactor a lot.

On Sunday, May 26, 2019 at 4:58:02 PM UTC+3, Jan Mercl wrote:
>
> On Sun, May 26, 2019 at 3:45 PM Sotirios Mantziaris 
> <smant...@gmail.com <javascript:>> wrote: 
>
> > Is there a chance that reading and assigning values might not be atomic? 
>
> Accessing a the full multi word value is non-atomic on most, if not 
> all architectures. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8074cb8e-5982-40cf-911d-90ea59205c76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to