<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" dir="ltr" text="#000000">
<p><font face="Courier">Hello, </font></p>
<p><font face="Courier">How can I create multiple behaviour (for
instance gen_fsm) processes? I have two issues I couldn't figure out:</font></p>
<p><font face="Courier">1. When I start the second one I am getting an
error:</font></p>
<p><font face="Courier">59> test_fsm:start().<br>
{ok,<0.140.0>}<br>
60> test_fsm:start().<br>
{error,{already_started,<0.140.0>}}</font></p>
<p><font face="Courier">2. As far as I understand, the only way to
notify an FSM is to use the gen_fsm:send_event function. I don't see a
way to send an event to a specific instance of my fsm (Pid ! Msg
doesn't work of cource).</font></p>
<p><font face="Courier">Thanks,</font></p>
<p><font face="Courier">  Yoel</font><br>
</p>
<p><font face="Courier"> </font></p>
<p><br>
</p>
</body>
</html>