<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 7/1/2022 9:45 AM, Juan Vuletich via Cuis-dev wrote:
    <blockquote cite="mid:62BEEC81.5000604@zoho.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      On 7/1/2022 8:17 AM, Jaromir Matas via Cuis-dev wrote:
      <blockquote
cite="mid:BYAPR03MB4072A2873CBF4A17F9C90C59EEBD9@BYAPR03MB4072.namprd03.prod.outlook.com"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <meta name="Generator" content="Microsoft Word 15 (filtered
          medium)">
        <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
        <div class="WordSection1">
          <p class="MsoNormal">Hi Juan, all,</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">I wonder why this can’t be interrupted by
            Alt+.</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">Semaphore new wait</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">The system returns a message “Can not
            interrupt background process” and the image has to be
            closed.</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">The same happens in this case:</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">s := Semaphore new.</p>
          <p class="MsoNormal">[1/0. s signal] fork.</p>
          <p class="MsoNormal">s wait</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">It not only freezes the UI but is not
            even recoverable…</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">Thanks,</p>
          <p class="MsoNormal">jaromir</p>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNoSpacing"><span lang="CS">--</span></p>
          <p class="MsoNoSpacing"><strong><span style="font-family:
                "Calibri Light",sans-serif; color: rgb(51, 51,
                51); font-weight: normal;">Jaromír Matas</span></strong><span
              style="font-family: "Calibri Light",sans-serif;
              color: rgb(85, 85, 85);"><o:p></o:p></span></p>
          <p class="MsoNoSpacing"><span style=""><a
                moz-do-not-send="true" class="moz-txt-link-abbreviated"
                href="mailto:mail@jaromir.net">mail@jaromir.net</a></span></p>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
      </blockquote>
      <br>
      Hi Jaromir,<br>
      <br>
      The problem is in #handleUserInterrupt, in particular in
      #processTakingMostCPU. #handleUserInterrupt runs on a high
      priority process, so the first thing it needs to figure out is
      which process to interrupt. I wrote that code believing that alt+.
      would need to interrupt busy code, and it works in that case. It
      doesn't work if the UI process is waiting and never resumed, as it
      is not "busy".<br>
      <br>
      We need to do better here. I won't be able to work on this for the
      next few days, but would be very happy if any of you folks suggest
      / code a solution.<br>
      <br>
      Thanks,<br>
      <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://independent.academia.edu/JuanVuletich">https://independent.academia.edu/JuanVuletich</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Juan-Vuletich">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://patents.justia.com/inventor/juan-manuel-vuletich">https://patents.justia.com/inventor/juan-manuel-vuletich</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://twitter.com/JuanVuletich">https://twitter.com/JuanVuletich</a></pre>
    </blockquote>
    <br>
    Just pushed a fix. Please review it. It is update #5346.<br>
    <br>
    Thanks!<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
<a class="moz-txt-link-freetext" href="https://independent.academia.edu/JuanVuletich">https://independent.academia.edu/JuanVuletich</a>
<a class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Juan-Vuletich">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a class="moz-txt-link-freetext" href="https://patents.justia.com/inventor/juan-manuel-vuletich">https://patents.justia.com/inventor/juan-manuel-vuletich</a>
<a class="moz-txt-link-freetext" href="https://twitter.com/JuanVuletich">https://twitter.com/JuanVuletich</a></pre>
  </body>
</html>