[erlang-questions] ETS Multiple Choice Question

Lev Walkin vlm@REDACTED
Wed Dec 12 03:40:20 CET 2007


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?

> Sean
> 
> On 12 Dec 2007, at 01:59, Russell King wrote:
> 
>> According to docs, "This module provides very limited support for  
>> concurrent updates.  No locking is available."
>>
>> Does ets do:
>>
>> a) table level lock
>> b) or record level lock
>> c) or neither?
>>
>> What is the answer a,b or c?
>>
>> My undergrad spider sense telling me to always pick C, if you are  
>> not sure ;).
>> thank you in advance.
>> Russ
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list