[erlang-questions] scope of ets table names?

Ulf Wiger (TN/EAB) <>
Mon Jan 7 13:20:33 CET 2008


Yes, but the scope of the name is still global
(inside the node). Attempts to access the table
may give a run-time error depending on its
protection settings.

BR,
Ulf W


mats cronqvist skrev:
> On Mon, 2008-01-07 at 10:11 +0100, Bengt Kleberg wrote:
>> greetings,
>>
>> a named ets table is accessible from all processes on the node.
> 
>   no.
>   from the ets manual;
> 
> new(Name, Options) -> tid()
> 
> Options = [Option]
>  Option = Type | Access | named_table | {keypos,Pos}
>   Access = public | protected | private
> 
> 
>   * protected The owner process can read and write to the table. Other
>     processes can only read the table. This is the default setting for
>     the access rights.
>   * private Only the owner process can read or write to the table.
>   * public Any process may read or write to the table.
> 
> 
>   mats
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list