But somehow if I run<div><br></div><div>[ [true] whileTrue: [ Transcript show: &#39;asd&#39;; cr.] ] fork.</div><div><br></div><div>It gets preempted while it is running, and It does not make any yield...<br><br><div class="gmail_quote">
On Mon, Dec 10, 2012 at 4:17 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On 2012-12-10, at 14:22, Guillermo Polito &lt;<a href="mailto:guillermopolito@gmail.com">guillermopolito@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi!<br>
&gt;<br>
&gt; I was looking at the process machinery in VMMaker and I can&#39;t find where the preemption of processes takes place...<br>
&gt;<br>
&gt; Can someone point me a place?<br>
<br>
</div></div>It happens in #transferTo:. This is called whenever a process is resumed because a semaphore got signaled (in which case the process that was waiting on the semaphore is resumed) or if the process stops working because of a wait / yield / suspend call (in which case #wakeHighestPriority determines the next process).<br>

<br>
- Bert -<br>
<br>
PS: no need to send a mail to both vm-dev and vm-beginners :)<br>
<br>
_______________________________________________<br>
VM-beginners mailing list<br>
<a href="mailto:VM-beginners@lists.squeakfoundation.org">VM-beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners</a><br>
</blockquote></div><br></div>