<div dir="ltr">not sure which plist you're using, but the one that I could find looked not entirely erlang-idiomatic; it tried to manage the process scheduling itself, perhaps as a test implementation of the way that other languages might do it.<div><br></div><div>Here's how I might tackle that problem in pure erlang.</div><div><br></div><div><a href="https://gist.github.com/anonymous/94ace7cd94fd5930f3e4">https://gist.github.com/anonymous/94ace7cd94fd5930f3e4</a><br></div><div><br></div><div>F.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 8:45 AM, Caragea Silviu <span dir="ltr"><<a href="mailto:silviu.cpp@gmail.com" target="_blank">silviu.cpp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>No ,<br><br></div>I have a function:<br><br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt"><span style="background-color:rgb(228,228,255)">tt</span>(<span style="color:rgb(102,14,122)">X</span>)-><span class=""><br>    <span style="color:rgb(102,14,122)">Fun </span>= <span style="color:rgb(0,0,128);font-weight:bold">fun</span>(<span style="color:rgb(102,14,122)">_X</span>) -><br>        ok<br>          <span style="color:rgb(0,0,128);font-weight:bold">end</span>,<br><br></span>    <span style="color:rgb(102,14,122)">List </span>= lists:seq(<span style="color:rgb(0,0,255)">1</span>, <span style="color:rgb(102,14,122)">X</span>),<br>    plists:foreach(<span style="color:rgb(102,14,122)">Fun</span>, <span style="color:rgb(102,14,122)">List</span>)<span style="color:rgb(0,0,128);font-weight:bold">.<br><br></span></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt"><span style="color:rgb(0,0,128);font-weight:bold">and I'm calling this one : module:tt(130000).<span class="HOEnZb"><font color="#888888"><br><br></font></span></span></pre><span class="HOEnZb"><font color="#888888"><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Menlo";font-size:9pt"><span style="color:rgb(0,0,128);font-weight:bold">Silviu<br></span></pre><br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 6:43 PM, Boroska AndrĂ¡s <span dir="ltr"><<a href="mailto:andras.boroska@gmail.com" target="_blank">andras.boroska@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Do you run this in the interactive shell? In that case put it in a module and compile it.<div><br></div><div>Measuring anything in the shell is not relevant.</div><div><br></div><div>Andras</div></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>