[erlang-questions] ETS Multiple Choice Question

Bjorn Gustavsson <>
Wed Dec 12 06:51:24 CET 2007


Lev Walkin <> writes:

> Sean Hinde wrote:
> > No locking is available in ets.
> > 
> > Limited support means that a single read or write will succeed without  
> > being corrupted by another concurrent read/write. If you want locking  
> > across mutiple read/writes then look at mnesia
> 
> What about write in the middle of foldr?

We have updated the documentation in R12B to make that clearer:

"If Function inserts objects into the table, or another process inserts objects into the table, those objects *may* (depending on key ordering) be included in the traversal."

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list