<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi,<br>
<br>
I saw that Erlang PID-s, beside their visible part, have an invisible
part, incarnation counter.<br>
It appears to be cycled between the values 1->2->3. (Look at the
last byte of the binaries below.)<br>
<br>
<tt>erl -sname a<br>
Erlang (BEAM) emulator version 5.6.1 [source] [async-threads:0]
[kernel-poll:false]<br>
<br>
Eshell V5.6.1  (abort with ^G)<br>
(a@mwlx081)1> term_to_binary(self()).<br>
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,<br>
  0,0,0,0,<b>2</b>>><br>
<br>
erl -sname a<br>
Erlang (BEAM) emulator version 5.6.1 [source] [async-threads:0]
[kernel-poll:false]<br>
<br>
Eshell V5.6.1  (abort with ^G)<br>
(a@mwlx081)1> term_to_binary(self()).<br>
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,<br>
  0,0,0,0,<b>3</b>>></tt><br>
<tt>(a@mwlx081)3> binary_to_term(
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,0,0,0,0,2>>
).<br>
<0.37.0><br>
(a@mwlx081)4> binary_to_term(
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,0,0,0,0,1>>
).<br>
<0.37.0><br>
(a@mwlx081)5> binary_to_term(
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,0,0,0,0,<b>1</b>>>
) == self().<br>
false<br>
(a@mwlx081)6> binary_to_term(
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,0,0,0,0,<b>2</b>>>
) == self().<br>
false<br>
(a@mwlx081)7> binary_to_term(
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,0,0,0,0,<b>3</b>>>
) == self().<br>
true<br>
(a@mwlx081)8> binary_to_term(
<<131,103,100,0,9,97,64,109,119,108,120,48,56,49,0,0,0,37,0,0,0,0,2>>
) ! ok.     <br>
<br>
=ERROR REPORT==== 3-Sep-2008::15:04:42 ===<br>
Discarding message ok from <0.37.0> to <0.37.0> in an old
incarnation (2) of this node (3)<br>
<br>
ok<br>
<br>
Question: how is the last used incarnation stored and when are values
recycled ? (on Linux)<br>
Is there any way to change the cycling range ?<br>
Just for my curiosity :)<br>
<br>
Br,<br>
    Zoltan<br>
<br>
</tt>
</body>
</html>