Atomic ets

Mats Cronqvist mats.cronqvist@REDACTED
Mon Dec 19 11:21:01 CET 2005


   yes, and that would go for the "atomic block" idea too i guess.

   mats

Bjorn Gustavsson wrote:
> 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



More information about the erlang-questions mailing list