<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Babak,<br>
      <br>
      I would suggest that you have a global variable - initialized to
      0.  When a thread finishes it sets it to 1 - no need to bother
      about duplicate setting.<br>
      <br>
      Then an event handler and check at whatever granularity you want
      e.g. treeStatus or node.<br>
      <br>
      John Forrest<br>
      On 09/11/15 00:05, Babak Moazzez wrote:<br>
    </div>
    <blockquote
cite="mid:CAEHJM4m8qefFG5_3O28yS9tc3UO9ruKvQZkBXNv8LheivAe8HQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi
        <div><br>
        </div>
        <div> I am trying to use two CBC processes in different threads.
          For example thread 1 solves a problem using pure branch and
          bound and thread 2 uses branch and cut with some parameters
          for solving the same problem (this is just an example).</div>
        <div><br>
        </div>
        <div> I need to make these threads check regularly if the other
          threads have finished solving, so there is an optimal solution
          found and there is no need for other threads to continue.</div>
        <div><br>
        </div>
        <div> Is there any way to do pause-resume in cbc from
          programming side (i.e. not using cmd/terminal and ctrl-S
          etc.)? for example pause every 1 second, check some flag and
          continue or terminate.</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div><br>
        </div>
        <div>Babak M.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>