logo       

Re: ets concurrency: msg#00314

lang.erlang.general

Subject: Re: ets concurrency

On Wed, 28 Jan 2004 22:09:56 -0500, Vance Shipley <vances@xxxxxxxxxxx> wrote:


What can I safely do with ets?

The ets manual page says:

"This module provides very limited support for concurrent updates."

Indeed. (:

Can I assume that inserts, deletes and lookups are atomic?

Yes (I thought this was also stated in the manual, but am too lazy to
check).

There is no transaction support though, so if you have to read the
object before writing, ets will not protect you.

There is some support for avoiding a rehash while iterating over an
ets table. This is used by the ets:foldl and ets:foldr functions,
but there is no table locking per se.

/Uffe
--
Ulf Wiger




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise