<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi all,</p>
<p><br>
</p>
<p>in the context of the current Transcript debate [1], I am trying to figure out whether, and why Marcel's proposed implementation of <noContextSwitch> [2] could work.</p>
<p><br>
</p>
<p>As a minimum example to test #valueNoContextSwitch, I tried the following:</p>
<p><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><span style="font-size: 12pt;">"Try to run </span><span style="font-size: 12pt;">this
</span><span style="font-size: 12pt;">infinite</span><span style="font-size: 12pt;"> loop</span><span style="font-size: 12pt;"> unpreemptively."</span><br>
</p>
<p></p>
<p></p>
<div>[</div>
<p></p>
<p></p>
<div><span style="white-space:pre"></span>[[false] whileFalse] valueNoContextSwitch.</div>
<p></p>
<p></p>
<div><span style="white-space:pre"></span>self inform: #done</div>
<p></p>
<p></p>
<div>] forkAt: Processor userBackgroundPriority.</div>
<p></p>
<p></p>
<div></div>
<p></p>
</blockquote>
<p><br>
</p>
<p>Now I would have expected my image (its UI process) to freeze while p2 is running unpreemptively. But - nothing happens, i.e., all other processes are still activated! I also exchanged <span>valueNoContextSwitch with <span>valueUninterruptably (which I implemented
 using primitive 123 analogously to <<span>noContextSwitch>) with the same result.</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span>Here is my question: Am I misunderstanding the concept of unpreemptive/uninterruptable execution (are those two terms really synonyms?), or is unpreempted execution broken?</span></span></span></p>
<p><span><span><span>Assuming the former is the case, what else would be a good and simple way to find out if a process is being run unpreemptively?</span></span></span></p>
<p><span><span><span>And do we have any good documentation of this concept - self-documenting tests will be preferred? :-)</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span>Best,</span></span></span></p>
<p><span><span><span>Christoph</span></span></span></p>
<p><br>
</p>
<p>[1] <a href="http://forum.world.st/Transcript-error-when-forceUpdate-false-td5126397.html" class="OWAAutoLink" id="LPlnk779294" previewremoved="true">http://forum.world.st/Transcript-error-when-forceUpdate-false-td5126397.html</a></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody">[2] <a href="http://forum.world.st/The-Inbox-Compiler-mt-454-mcz-td5126568.html" class="OWAAutoLink" id="LPlnk639407" previewremoved="true">http://forum.world.st/The-Inbox-Compiler-mt-454-mcz-td5126568.html</a></div>
<br>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</body>
</html>