I wonder what the difference is between using erlang:start_timer(Timeout, Pid, Msg) and directly using the receive-after clause as below:<div><br></div><div>receive </div><div>       _Event -> ok</div><div>after </div><div>
       Timeout -> Pid ! Msg</div><div>end</div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Nov 23, 2011 at 7:20 AM, Scott Lystig Fritchie <span dir="ltr"><<a href="mailto:fritchie@snookles.com">fritchie@snookles.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@erlang-solutions.com">jesper.louis.andersen@erlang-solutions.com</a>> wrote:<br>

<br>
jla> In *principle* this kind of structure should be extremely<br>
jla> scalable. I would try reconstructing the problem without any kind<br>
jla> of other subsystem (TCP, Cowboy, ...) first, so you have a smaller<br>
jla> failing test case. Then you can probably instrument Erlang/OTP by<br>
jla> inspecting the Timer wheel. This will probably tell us a lot more<br>
jla> about the limitations of the timer wheel structure in this case.<br>
<br>
Sounds like an excellent use of DTrace, hint hint.....<br>
<br>
The hints aren't just for Jesper and Zvi but anyone else who's intersted<br>
in measuring the behavior of stuff inside the Erlang VM.  This stuff is<br>
working its way into (we hope!) R15B right now.  To read more about it,<br>
see:<br>
<br>
<a href="http://www.snookles.com/slf-blog/2011/11/19/dtrace-and-erlang-a-status-report/" target="_blank">http://www.snookles.com/slf-blog/2011/11/19/dtrace-and-erlang-a-status-report/</a><br>
<a href="http://www.snookles.com/slf-blog/2011/11/19/systemtap-and-erlang-a-tutorial/" target="_blank">http://www.snookles.com/slf-blog/2011/11/19/systemtap-and-erlang-a-tutorial/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-Scott<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>