<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Spencer wrote;</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span></span></blockquote><div><br></div></span><div>Hmm, it would be nice if there was no difference. But there is a difference, internally, and it appears that is leaking out of the abstraction so to speak. So basically .exit() appears to terminate the shred immediately whereas Machine.remove() waits until all shreds have finished executing for this sample, i.e. all shreds are waiting =&gt; now. At least that is what I am interpreting from the source code. </div><div><br></div><div><br></div></div></div></div></blockquote><div>Ok... but if we run Machine.remove() from shred A then I think we can be absolutely sure shreds B, C and D will be waiting for something (potentially shred A yielding), because we have no real concurrency and we can also be sure the ugen graph is not being pulled by the dac at this moment for the same reason.</div><div><br></div><div>I can see this mattering in the case of &quot;%chuck - [my_shred]&quot; which could be executed while the VM is doing any of the things it can do. In that case we&#39;ll likely want to wait for a moment to avoid stuff like half of a operation being left on the stack, but in the case of commands coming from shreds I think we can be sure other shreds are not in the middle of something.</div><div><br></div><div>I&#39;m not sure how that would have to deal with the need to be able to kill shreds stuck in a infinite non-time-advancing loop from the console though.</div><div><br></div><div>Maybe I am missing something and there is a reason to have the termination of shred B from shred A postponed until A yields in some cases?</div><div><br></div><div><br></div><div>Yours,</div><div>Kas.</div></div></div></div>