Yukihiro Matsumoto
2/8/2005 11:01:00 PM
Hi,
In message "Re: threading question, are ops on builtins atomic?"
on Tue, 8 Feb 2005 22:20:21 +0900, Glenn Parker <glenn.parker@comcast.net> 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.