[erlang-questions] [Q] ets atomicity

Kenneth Lundin kenneth.lundin@REDACTED
Mon May 14 11:16:30 CEST 2007


Hi,

Yes, ets and dets access per table entry is atomic.

/Kenneth (OTP Team at Ericsson)

On 5/14/07, Ladislav Lenart <lenartlad@REDACTED> wrote:
> Hello,
>
> just one question about ets (and dets): Suppose I have a {key, value}
> ets table and two processes (reader and writer) accessing it. If both
> access the same row of the table at the same time, is it guaranteed
> by the BIFs that the reader process reads either old row or the newly
> written one, or put in other words, is row access in ets atomic?
>
> Thanks,
>
> Ladislav Lenart
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list