Atomic ets
Bjorn Gustavsson
bjorn@REDACTED
Mon Dec 19 11:10:59 CET 2005
Mats Cronqvist <mats.cronqvist@REDACTED> writes:
> (*) in some cases, such as in the original question, you can serialize
> through a server (which will slow you down some).
> sometimes i've resorted to this nasty hack;
>
> erlang:yield(),
> foo(),
> bla().
>
> which'll (probably) make foo and bla atomic (at least as long as
> the vm uses reduction counting)
And as long the Erlang emulator can not run more than one Erlang process,
which is no longer true in the SMP-enabled emulator in R11B.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list