caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Sharing time between two computations?
@ 2006-02-05 19:09 Stephen Brackin
  2006-02-05 22:45 ` [Caml-list] " Gerd Stolpmann
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Brackin @ 2006-02-05 19:09 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 2282 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-05 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-05 19:09 Sharing time between two computations? Stephen Brackin
2006-02-05 22:45 ` [Caml-list] " Gerd Stolpmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).