[erlang-questions] erlang *****
Andras Georgy Bekes
Tue Mar 18 15:22:26 CET 2008
> I think a pattern match
> is an atomic operation in the VM, I mean, the scheduler won't switch
> to another process in the middle of a pattern match.
Tested and seems true.
So you can easily hang the whole Erlang VM by carefully building a huge
pattern match :-(
it doesn't even need much memory to do it.
-------------- next part --------------
after 500 ->
io:format("Waiting for a while to see if tick works...\n",),
after 3000 -> ok
Tick ! stop,
More information about the erlang-questions