<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/21cfe6b7d7d8f6b67ad1bdfb90131fe8"
  from="Stephen Brackin &lt;stephen.brackin@v...&gt;"
  author="Stephen Brackin"
  date="2006-02-05T19:09:34"
  subject="Sharing time between two computations?"
  prev="2006/02/ac8c0b52e160013bbec74e1efdf70e0f"
  next="2006/02/1276c935a6702530a86debf1fa1627c5"
  next-in-thread="2006/02/5f71052e2b6eacd21928206ad2e34da1"
  prev-thread="2006/02/1df604b17c7343a34edde8c4272eced3"
  next-thread="2006/02/6b6ac251c25c7a55d730016da2aeba88"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Sharing time between two computations?">
<msg 
  url="2006/02/21cfe6b7d7d8f6b67ad1bdfb90131fe8"
  from="Stephen Brackin &lt;stephen.brackin@v...&gt;"
  author="Stephen Brackin"
  date="2006-02-05T19:09:34"
  subject="Sharing time between two computations?">
<msg 
  url="2006/02/5f71052e2b6eacd21928206ad2e34da1"
  from="Gerd Stolpmann &lt;info@g...&gt;"
  author="Gerd Stolpmann"
  date="2006-02-05T22:45:12"
  subject="Re: [Caml-list] Sharing time between two computations?">
</msg>
</msg>
</thread>

<contents>
Xavier Leroy showed me how to set things up so that an OCaml computation is
interrupted after a pre-set time limit to ask the user how long to continue.
Now I'd like to do the same thing for two parallel computations that I'd
like to have share the time available more-or-less evenly. (I'm writing
OCaml code for automatically proving results in the HOL Light theorem
prover, and I have a situation where the code needs to prove that a value is
positive or prove that it's negative, but the code doesn't know which, if
either, it will be able to prove.) Can this be done? If so, then what's the
easiest way to do it? As a special case of this question, for an expression
of the form "let x,y = f(args1),g(args2)", how does the system allocate time
between the computation of x and y? (If it's more-or-less equally, then that
solves my problem; if one of x or y is computed first, then the other, then
I've still got a problem.)

Steve Brackin


</contents>

</message>

