From: "Stephen Brackin" <stephen.brackin@verizon.net>
To: <caml-list@yquem.inria.fr>
Subject: Sharing time between two computations?
Date: Sun, 05 Feb 2006 14:09:37 -0500 [thread overview]
Message-ID: <0IU800JUPAJW2PB8@vms042.mailsrvcs.net> (raw)
[-- 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 --]
next reply other threads:[~2006-02-05 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-05 19:09 Stephen Brackin [this message]
2006-02-05 22:45 ` [Caml-list] " Gerd Stolpmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0IU800JUPAJW2PB8@vms042.mailsrvcs.net \
--to=stephen.brackin@verizon.net \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox