, . , self() .
, . .
1> self().
<0.32.0> % shell Pid
2> spawn(fun() -> ets:new(my_table, [named_table, public]), receive X -> ok end end).
<0.35.0> % the spawned process Pid
3> ets:insert(my_table, {a, b}).
true
, .
4> 1/0.
** exception error: bad argument in an arithmetic expression
in operator '/'/2
called as 1 / 0
5> self().
<0.38.0> % shell reborn, with a different Pid
6> ets:insert(my_table, {c, d}).
true
7> ets:tab2list(my_table).
[{c,d},{a,b}] % table did survive the shell restart
, - :
8> pid(0,35,0) ! bye_bye.
bye_bye
9> ets:info(my_table).
undefined