<div dir="ltr">Must not hit enter... <div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">relinquishProcessorForMicrosec</span><span style="font-family:arial,sans-serif;font-size:13px">onds </span><br>

</div><div style><span style="font-family:arial,sans-serif;font-size:13px">may or may not one has to find the actual code and maybe it is platform dependent etc etc. </span></div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">An attempt was made to ask the VM what the next wakeup time is. The VM actually knows this it&#39;s the bottom end of the Delay logic. </span></div>
<div style><font face="arial, sans-serif">We then sleep to this tick, using a call that should awake the process if an BSD interrupt (ill defined) arrives. </font></div><div style><br></div><div style><font face="arial, sans-serif">In here we also service socket handles etc and oh maybe some other house keeping. </font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">Still the objective was to sleep until we have to wake up for Morphics 50 times a second poll, or some UI/socket/interrupt arrives. </font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">In practice there are some artifacts like the Scheduler saying go to sleep but awake -2 milliseconds ago because of some race condition with in the Delay logic. (good luck finding that)... </font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 24, 2013 at 7:18 PM, John McIntosh <span dir="ltr">&lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well let me reflect.<div>Nothing has changed, the VM energy sapping field is the same as  yesterday, just more evident. </div>
<div><br></div><div> I wasn&#39;t able to determine what code base is used, but if I go back 5 or 10 years.</div>

<div><br></div><div>(a) The morphic event polling cycle runs 50 times a second. One could write some timer consolidation code there to consider when do I have to wake up and paint all those morphs? No C/Objective-C/assembler/fortran required... </div>

<div><br>
</div><div>(b) Maybe the VMs are event driven now and Morphic does not need to poll 50 times a second? </div><div><br></div><div>(c) The BSD Unix socket system requires polling of some form.  But see work by Craig 10-15 back on &quot;Flow&quot;</div>


<div><br></div><div>(d) When all the Smalltalk Processes settle, the dispatcher runs the lowest priority task which calls <span style="font-family:arial,sans-serif;font-size:13px">relinquishProcessorForMicrosec</span><span style="font-family:arial,sans-serif;font-size:13px">onds with a bogus value. </span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, Oct 24, 2013 at 6:21 PM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Looking through some of the low-level changes in Mavericks I noticed stuff about timer consolidation. I *think* that it is something that you can offer to allow, rather than something done unto you code, but almost certainly it will have some sort of impact on the heartbeat ticker type of code used in stackvm/cog. Where is a skilled Mac vm maintainer when you need one?<br>


<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
&quot;bOtHeR&quot; said Pooh, mistaking the LSD tablet for aspirin<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>===========================================================================<br>John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;<br>

Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882<br>===========================================================================<br><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>===========================================================================<br>John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;<br>
Corporate Smalltalk Consulting Ltd. Twitter: squeaker68882<br>===========================================================================<br><br>
</div>