From: Yukihiro Matsumoto Date: 2005-02-09T08:01:29+09:00 Subject: Re: threading question, are ops on builtins atomic? Hi, In message "Re: threading question, are ops on builtins atomic?" on Tue, 8 Feb 2005 22:20:21 +0900, Glenn Parker writes: |> |Is / will this be the case when using pthreads? |> |in Ruby 2.0? |> |> No. | |Matz, could you please elaborate just a little bit? I *think* what you |are saying is that operations like Array#delete will *not* be atomic |under pthreads, but it's hard to tell. So, I will try asking again. It's hard to assure what would be atomic under the pthread environment, because atomicity changes for each implementation of pthread. So the most exact answer would be "no, there's no assured atomic operation without explicit semaphore". matz.