[erlang-patches] Add supervisor:start_child/3 to limit the number of children

Fred Hebert <>
Wed Apr 10 15:03:37 CEST 2013

On 04/10, Fred Hebert wrote:
> [...] Increment the counter as an atomic operation (a write operation
> that also reads, so you benefit from {read_concurrency,true} as an
> option). Assuming an entry of the form {transactions, N}:

Sorry, this should read {write_concurrency,true}. Using update_counter/3
is a write-only operation that both lets you change and get the value of
the counter. I tend to segregate such counters to their own table (or
use read operations very, very selectively) as to keep the switching
between read and write modes as low as possible.


More information about the erlang-patches mailing list