[erlang-questions] Questions about ETS locking

Sverker Eriksson sverker.eriksson@REDACTED
Fri May 11 14:37:46 CEST 2012

Zabrane Mickael wrote:
> If both are specified (write_concurreny + read_concurrency), what one should expect?

> How ETS will behaves?
ETS will
* use fine grained locking within the table (write_concurrency) at the 
expense of the overhead from that extra layer of locking.
* use read-optimized locks (read_concurrency) at the expense of heavier 
mode switches for the locks (read <-> write).


"The read_concurrency option can be combined with the write_concurrency 
option. You typically want to combine these when large concurrent read 
bursts and large concurrent write bursts are common."

/Sverker, Erlang/OTP Ericsson

More information about the erlang-questions mailing list