From: Tony Arcieri Date: 2012-06-11T02:16:01+09:00 Subject: Re: Is "a,b=c,d" atomic? or do I need a Mutex? --000e0cd4bdc80cf0c204c221630a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Appending to an array from many threads in an unsynchronized manner can definitely raise a ConcurrentModificationException on JRuby On Sun, Jun 10, 2012 at 9:51 AM, Bartosz Dziewo=C5=84ski wrote: > It is atomic on MRI. It may or may not be on other interpreters, if > you care about them. (But probably should be as an element of the > syntax.) > > Array#<< may or may not be atomic as well. (It is on MRI.) > > -- Matma Rex > > --=20 Tony Arcieri --000e0cd4bdc80cf0c204c221630a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Appending to an array from many threads in an unsynchronized manner can def= initely raise a ConcurrentModificationException on JRuby

On Sun, Jun 10, 2012 at 9:51 AM, Bartosz Dziewo=C5=84ski <= span dir=3D"ltr"><matma.rex@gmail.com> wrote:
It is atomic on MRI. It may or may not be on= other interpreters, if
you care about them. (But probably should be as an element of the
syntax.)

Array#<< may or may not be atomic as well. (It is on MRI.)

-- Matma Rex




--
Tony Arcieri=

--000e0cd4bdc80cf0c204c221630a--