<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <pre style="background-color:#ffffff;color:#000000;font-family:'Menlo';font-size:18,0pt;"><span style="color:#000080;font-weight:bold;"></span><span style="color:#660e7a;">Hi,

EtsName</span> = ets:new(test,[named_table,ordered_set]),
Res = ets:select_delete(<span style="color:#660e7a;">EtsName</span>,[{{<span style="color:#660e7a;">Key</span>},[],[true]}]).

Res should be 1 or 0!

But if i do this with a lot of process, at the same time,
it happend that two process get 1!

Start with: ets:insert(Ets<span style="color:#660e7a;">Name</span>,{<span style="color:#660e7a;">Key</span>})<span style="color:#000080;font-weight:bold;">.</span>

Process One: ets:select_delete(<span style="color:#660e7a;">EtsName</span>,[{{<span style="color:#660e7a;">Key</span>},[],[true]}]).
Process Two: ets:select_delete(<span style="color:#660e7a;">EtsName</span>,[{{<span style="color:#660e7a;">Key</span>},[],[true]}]).

Process <b>One </b><b>get 1</b> AND Process <b>Two get 1</b>, with the same key, of course! 


Is this correct?<span style="color:#000080;font-weight:bold;"></span></pre>
    <pre class="moz-signature" cols="72">-- 
Grüße
Oliver Bollmann</pre>
  </body>
</html>