caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Inter-thread exceptions
@ 2002-09-03 13:48 Lauri Alanko
  2002-09-04 14:43 ` Sven LUTHER
  2002-09-05 11:30 ` Xavier Leroy
  0 siblings, 2 replies; 7+ messages in thread
From: Lauri Alanko @ 2002-09-03 13:48 UTC (permalink / raw)
  To: caml-list

Hello.

How big a task would it be to implement asynchronous inter-thread
exceptions? In practice the feature would amount to a function:

val raise_to : exn -> Thread.t -> unit

This would be most handy for implementing eg. timeouts: just make a thread
that sleeps and raises an exception in the other thread when the time is
spent.

The GHC folks and John Reppy have done some work on spelling out the
semantics of asynchronous exceptions in Haskell. Could this be used as a
base for a similar system in a strict and impure setting like ocaml? What
would be the main difficulties, both theoretically and implementation-wise?


Lauri Alanko
la@iki.fi
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2002-09-11 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-03 13:48 [Caml-list] Inter-thread exceptions Lauri Alanko
2002-09-04 14:43 ` Sven LUTHER
2002-09-04 15:30   ` Florian Douetteau
2002-09-05 11:30 ` Xavier Leroy
2002-09-06 18:22   ` Dmitry Bely
2002-09-09 14:15     ` Xavier Leroy
2002-09-11 20:41       ` Dmitry Bely

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).