<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 12:32 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"> <br>On 01.03.2016, at 21:14, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt;     one thing this lock-up suggests is that interrupting should interrupt all processes running at user priority, not just the uiProcess.  Does that make sense?  It does to me, but would be something I&#39;d control by a preference for testing its effects.<br>
<br>
<br>
I thought it interrupted the active process? Wouldn’t that make most sense?<br></blockquote><div><br></div><div>Not necessarily.  For example, in the test I referred to, testSocketReuse, the ui process (the process running the test) spawns two other processes that spin hard, one trying to write to a socket and one trying to read form a socket.  If the socket code doesn&#39;t detect errors properly then these processes continue to spin hard.  If one interrupts then /nothing/ appears to happen.  The ui process is indeed interrupted, but because the other two processes continue to spin hard they shut out the notifier which doesn&#39;t appear.  And even if the notifier did appear those processes would still be spinning hard, making it difficult for the user to interact with the notifier.  So in this case it makes sense to interrupt all processes running at user priority.  Arguably it makes sense to interrupt any and all processes running at or above user priority and below user interrupt priority.  Usually there&#39;s only the ui process in this range, but occasionally there are more and errors can cause them to make an interrupt ineffective if it only interrupts the ui process.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
- Bert -<br>
<br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>