3 ms·
Visible variables are not changed by other threads during serial execution in either node or Erlang. But races in node can arise in terms of values changing un
by artsrc 15y ago
Visible variables are not changed by other threads during serial execution in either node or Erlang.
But races in node can arise in terms of values changing unpredictably while before a callback is executed in node.
In Erlang values can change when a process responds to another message, before processing a particular message. This seems like a race too.
In either case the races are better contained in either node or Erlang than they are in more liberal models like the java or .net ones.