ets concurrency

Ulf Wiger ulf.wiger@REDACTED
Thu Jan 29 14:04:22 CET 2004


On Wed, 28 Jan 2004 22:09:56 -0500, Vance Shipley <vances@REDACTED> 
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




More information about the erlang-questions mailing list