<div>Hi</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; and wath is hapend here?<br>&nbsp;</div>
<div><font size="2">
<p>// Only to make sound</p>
<p>SinOsc s =&gt; dac;</p>
<p>0.1 =&gt; s.gain;</p>
<p>fun void funcion()</p>
<p>{</p>
<p>while( true ) {</p>
<p>&lt;&lt;&lt; &quot;func, <a href="http://me.id">me.id</a>() = &quot;, <a href="http://me.id">me.id</a>() &gt;&gt;&gt;;</p>
<p>1::second =&gt; now;</p>
<p>}</p>
<p>}</p>
<p>spork ~ funcion() @=&gt; Shred @ sfun;</p>
<p>// This block the shreds</p>
<p>// The .yield is called externally</p>
<p>sfun.yield();</p>
<p>//me.yield(); // not necessary</p>
<p>&lt;&lt;&lt; &quot;main, <a href="http://me.id">me.id</a>() = &quot;, <a href="http://me.id">me.id</a>() &gt;&gt;&gt;;</p>
<p>1::second =&gt; now;</p>
<p>&lt;&lt;&lt; &quot;end&quot; &gt;&gt;&gt;;</p>
<p>1::ms =&gt; now;</p></font></div>
<div>&nbsp;</div>
<div>Cheers</div>
<div>(remember I don&#39;t speak English so good&nbsp;:)</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">2008/11/10, Kassen &lt;<a href="mailto:signal.automatique@gmail.com">signal.automatique@gmail.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><br>
<div class="gmail_quote">2008/11/10 Stefan Blixt <span dir="ltr">&lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:stefan.blixt@gmail.com" target="_blank">stefan.blixt@gmail.com</a>&gt;</span><span class="q"><br>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hmm.. wasn&#39;t some kind of watchdog thing added to catch stuff like this: 
<div><br>&nbsp;</div>
<div>while (true) {</div>
<div>}</div>
<div><br>&nbsp;</div>
<div>...? That ought to catch Eduard&#39;s problem as well, I would think. Maybe it&#39;s some kind of option to the chuck application?</div></blockquote></span>
<div><br>Well, the watchdog doesn&#39;t actually catch stuff like that. What I think the Watchdog does is check for the VM being very late delivering samples to the soundcard and if/when it is it offers you to abort the current shred (being the one that has the CPU at that time.<br>
<br>For me on Linux in the Mini (I just tried) the watchdog does catch Eduard&#39;s code.<br><br>Watchdog will also &quot;catch&quot; situations that are kosher yet take a lot of CPU, for example a big calculation meant to fill a sound buffer or something along those lines. In that case it may make sense not to abort the Shred and simply wait while dreaming of a faster computer.<br>
<br>&nbsp;</div></div>Interestingly, when something claims the whole soundcard while the Mini is running (Skype just did this for me yesterday) it will aparently prevent the Mini from handing out samples, even with a empty VM, and watchdog will offer to remove the current shred even if there is none.<br>
<br>Wtachdog is a very simple tool, a emergency break. It&#39;s no substitute for analysing code nor could it be.<br><br>I hope that helps,<br>Kas.<br><br>_______________________________________________<br>chuck-users mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br>